Quote:
Originally Posted by rjjj
You can use MTA Editor to create the gates and after save the maps, you just convert to Pawn code and put in your GM/FS.
About the commands, you can create a variable to be used by some players:
pawn Код:
new IsAPoliceMan[MAX_PLAYERS];//It is equal to 0.
pawn Код:
if (strcmp("/police1", cmdtext, true, 6) == 0) { IsAPoliceMan[playerid] = 1;//The variable is now equal to 1 for the command user return 1; }
and:
pawn Код:
if(strcmp("/cop", cmdtext, true, 10) == 0) { if(IsAPoliceMan[playerid] == 1)//It checks the level of the variable is 1 for the command user { SendClientMessage(playerid, 0xFFFFFFAA, "You are a police officer!"); } return 1; }
I hope i have helped ![Cheesy](images/smilies/biggrin.png)
|
You have helped a great lot, but i'm really stuck, When i map the gates, how do i map a closed one? And when i have finished it, do you fancy helping me in full detail tomorrow? Thank-you. Callum