Jump to content
  • 0

Problema Server


mihaita

Question

Am o problema cu serveru, toate masinile care ar trebui sa le foloseasca numai ce-i care au un anumit job (ex: mecanici sa foloseasca masinile de mecanici) le pot folosi oricine (adica un playeri oarecare poate folosi masina de mecanici fara sa fi mecanic) asjuati-ma va rog

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Pai, uite cum trebuie adaugate in mod corect masinile in mod. Bagi masinile in mod cu MTA sau /save. Dupa intri in joc si dai /dl si iei id de la masina/masinile pe care le vrei numai pentru un job.

[pawn] if(newcar == idmasina || newcar == idmasina)

                {

    if(PlayerInfo[playerid][pJob] == jobid) { }

    else if

    {

        SendClientMessage(playerid,COLOR_GRAD!,"You don't have the keys to this car !");

        RemovePlayerFromVehicle(playerid);

    }

}

                        [/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.