Help with a timer to use the command per minute.
#1

Hello again. I need some help creating a timer to use the command once per minute So players can't spam it.

pawn Код:
if(strcmp(cmdtext, "/fart", true) == 0) {
new pName[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "EEW! %s has just farted!.", pName);
SendClientMessageToAll(0xFFFF00AA, string);
return 1;
}
How to do that? Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)