Command help
#1

HI im useing this command to respawn all the cars on the server but when i enter the command the sendclient message sends alot of spam to every one >.< how do I make it to where it only says the message once?

Код:
	if(strcmp(cmdtext, "/atow", true)==0)
	{
	  if (IsPlayerAdmin(playerid))
 			for(new v=0; v<MAX_VEHICLES; v++)
  		{
  		  SetVehicleToRespawn(v);
  		  SendClientMessageToAll(0x90EE90FF, "Public Vehicles have been respawned");
  			}
  	return 1;
	}
Reply
#2

Move the SendClientMessage out of the loop. It'll actually send for every vehicle that's respawned.
Reply
#3

ok fixed it thanks
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)