Limit a command
#1

Hello everybody, I am making this post so that someone could help me. I have a command and i would like to add something that makes it only usable per player per ten seconds , im doing this because players abuse of the command and i would whant to add something that can make the command only usable once every ten seconds or so.

the command looks like this:

Код:
	if(strcmp(cmd, "/sync", true) == 0) {
	  if(IsPlayerInAnyVehicle(playerid)){
	  SendClientMessage(playerid, COLOR_YELLOW, "Canot use this while in veh");
	  return 1;
	  }
		SpawnPlayer(playerid);
		return 1;
	}
Reply


Messages In This Thread
Limit a command - by XeoN_13 - 15.02.2010, 20:41
Re: Limit a command - by acade - 15.02.2010, 22:51
Re: Limit a command - by SlashPT - 16.02.2010, 00:16

Forum Jump:


Users browsing this thread: 1 Guest(s)