Open and close 1 cmd
#5

I am not sure, but is possible with GetPVarInt?
pawn Код:
CMD:example(playerid, params[])
{
    if(GetPVarInt(playerid, "example") == 0) {
        // Code
        SetPVarInt(playerid, "example", 1);
    }
    else if(GetPVarInt(playerid, "example") == 1) {
        // Code
        SetPVarInt(playerid, "example", 0);
    }
    return 1;
}
Reply


Messages In This Thread
Open and close 1 cmd - by remyguys - 20.11.2011, 15:26
Re: Open and close 1 cmd - by MP2 - 20.11.2011, 15:33
Re: Open and close 1 cmd - by [MG]Dimi - 20.11.2011, 18:21
Re: Open and close 1 cmd - by MP2 - 20.11.2011, 18:24
Re: Open and close 1 cmd - by Kostas' - 20.11.2011, 18:29
Re: Open and close 1 cmd - by [MG]Dimi - 20.11.2011, 18:34
Re: Open and close 1 cmd - by Kostas' - 20.11.2011, 18:43
Re: Open and close 1 cmd - by A7X_CEEJAY - 20.11.2011, 18:44
Re: Open and close 1 cmd - by MP2 - 20.11.2011, 18:58
Re: Open and close 1 cmd - by Kostas' - 20.11.2011, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)