02.04.2013, 01:30
(
Последний раз редактировалось elitesae; 02.04.2013 в 02:21.
Причина: Easier script
)
Im using this script, When you type /buygun then you have to wait 5 sec to use /buygun again, But how can i make it ''first time'' type /buygun you have to wait 5 sec?
i mean FIRST TIME type /buygun, not second time
i mean FIRST TIME type /buygun, not second time
pawn Код:
command(buygun, playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.5, 295.5375,-80.8118,1001.5156)) {
if(cdTimer[playerid]-gettime() > 0) return SendClientMessage(playerid, 0xFF0000AA, "Please wait before using another Adrenaline Pill!");
ShowPlayerDialog(playerid,04041,DIALOG_STYLE_LIST,""); //whatever
cdTimer[playerid] = gettime() + 5; // 5 seconds
}
return 1;
}