how to make 'Please wait before use command'
#5

TY sooo much guys,it compiled and everything but its doing both teh msg and the command

dcmd_ad (playerid, params[])
{
#pragma unused params
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 100)
{
SetPlayerHealth(playerid, health +100);
SendClientMessage(playerid, 0x00FF00AA, "Adrenaline pill has been utilised");
if(GetPVarInt(playerid,"CMDABUSE")>GetTickCount()) return SendClientMessage(playerid,0xFF0000AA,"Please Wait Before Using Another Adrenaline Pill.");
SetPVarInt(playerid,"CMDABUSE",GetTickCount()+6000 0);
}
return 1;
}
Reply


Messages In This Thread
how to make 'Please wait before use command' - by MWhite_005 - 14.07.2011, 01:40
Re: how to make 'Please wait before use command' - by [L3th4l] - 14.07.2011, 01:58
Re: how to make 'Please wait before use command' - by Ricop522 - 14.07.2011, 02:07
Re: how to make 'Please wait before use command' - by grand.Theft.Otto - 14.07.2011, 02:40
Re: how to make 'Please wait before use command' - by MWhite_005 - 14.07.2011, 03:16
Re: how to make 'Please wait before use command' - by MWhite_005 - 14.07.2011, 03:31
Re: how to make 'Please wait before use command' - by [L3th4l] - 14.07.2011, 04:20
Re: how to make 'Please wait before use command' - by hulitubolies - 14.07.2012, 18:29
Re: how to make 'Please wait before use command' - by hulitubolies - 14.07.2012, 18:47

Forum Jump:


Users browsing this thread: 3 Guest(s)