Rcon commands crash
#3

This is one of my cmds.

Код:
 	if (strcmp("/armour (playerid)", cmdtext, true, 7) == 0) // Change "/armour" to whatever you want to e.g "/a" (a for armour)
 	{
 		if(IsPlayerAdmin(playerid)) // This checks if the player is logged on Rcon.
 		{
 		  SetPlayerArmour(playerid, 100); // This sets the armour of the player to 100.
			SendClientMessage(playerid,COLOUR_RED,"You gave armour to %s!"); // This sends the msg "You gave armour to [name of the player]" change it to what you want it to say. This will only be seen by you
      SendPlayerMessageToPlayer(playerid, COLOUR_YELLOW,"%s gave you armour!"); // This will send a msg to the player and inform him/her that you gave him/her armour. You can change the text. (only Him/her will see it)
      return 1;
 	  	}
		}
Reply


Messages In This Thread
Rcon commands crash - by Naxix - 06.03.2010, 09:01
Re: Rcon commands crash - by dice7 - 06.03.2010, 09:23
Re: Rcon commands crash - by Naxix - 06.03.2010, 09:35
Re: Rcon commands crash - by Rzzr - 06.03.2010, 09:38
Re: Rcon commands crash - by [WSM]Deadly_Evil - 06.03.2010, 09:40
Re: Rcon commands crash - by Naxix - 06.03.2010, 09:45
Re: Rcon commands crash - by Naxix - 06.03.2010, 09:47
Re: Rcon commands crash - by Rzzr - 06.03.2010, 09:50
Re: Rcon commands crash - by dice7 - 06.03.2010, 09:54
Re: Rcon commands crash - by Naxix - 06.03.2010, 09:59

Forum Jump:


Users browsing this thread: 1 Guest(s)