04.04.2015, 18:21
Hi, I'm going to be short about it beacuse i'm short on time at the moment.
I need to make a command I scripted to be able to do after 30 seconds.
And the player need to wait 30 seconds before doing it. so here is the currect CMD:
Thanks in advance, I just need you guys to make this command on a timer, like the player need to wait 30 seconds.
I need to make a command I scripted to be able to do after 30 seconds.
And the player need to wait 30 seconds before doing it. so here is the currect CMD:
Код:
} if(strcmp(cmd,"/getup",true)==0) { if(IsPlayerConnected(playerid)) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { SendClientMessage(playerid, COLOR_WHITE, "You need to wait 30 seconds before getting up."); ClearAnimations(playerid); animation[playerid] = 0; TogglePlayerControllable(playerid, 1); format(string, sizeof(string), "* %s stumbles back up.", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /getup",d,m,y,h,mi,s,sendername); CommandLog(string); if(UsingSmokeAnim[playerid] == 1) { UsingSmokeAnim[playerid] = 0; } } else { SendClientMessage(playerid, COLOR_LIGHTRED, "You must be on foot to use this command"); } } return 1;