PD gates.
#7

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
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
Reply


Messages In This Thread
PD gates. - by iGetty - 05.12.2010, 22:12
Re: PD gates. - by iGetty - 05.12.2010, 22:29
Re: PD gates. - by Alex_Valde - 05.12.2010, 22:42
Re: PD gates. - by iGetty - 05.12.2010, 22:44
Re: PD gates. - by rjjj - 05.12.2010, 22:48
Re: PD gates. - by Alex_Valde - 05.12.2010, 22:50
Re: PD gates. - by iGetty - 05.12.2010, 22:51
Re: PD gates. - by scripter1 - 05.12.2010, 23:05

Forum Jump:


Users browsing this thread: 1 Guest(s)