Help needed of an advanced scripter
#3

pawn Код:
if(!strcmp("/warusa", cmdtext, true))
{
    if(GetPVarInt(playerid,"DisabledCMD") == 1) return SendClientMessage(playerid,COLOR_RED,"You can't use this command, you just used it!");
    SetPlayerPos(playerid,2525,-1893,14);
    SetPlayerFacingAngle(playerid,180);
    SetPVarInt(playerid,"DisabledCMD",1);
    SetTimer("DisabledCMD,your_time_here,0); //change the your_time_here to your time!
}
forward DisabledCMD(playerid);
public DisabledCMD(playerid)
{
    SetPVarInt(playerid,"
DisabledCMD",0);
    SendClientMessage(playerid,COLOR_GREEN,"
You can use the command again!");
}
Not tested, please tell me if it worked
Reply


Messages In This Thread
Help needed of an advanced scripter - by speediekiller2 - 02.05.2012, 19:17
Re: Help needed of an advanced scripter - by Scenario - 02.05.2012, 19:21
Re: Help needed of an advanced scripter - by Jstylezzz - 02.05.2012, 19:24
Re: Help needed of an advanced scripter - by HDFord - 02.05.2012, 19:35
Re: Help needed of an advanced scripter - by speediekiller2 - 02.05.2012, 20:56
Re: Help needed of an advanced scripter - by Jstylezzz - 02.05.2012, 21:14

Forum Jump:


Users browsing this thread: 2 Guest(s)