[Ajuda] Sobre comandos!
#2

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmdtext, "/KitMedico", true)==0) 
	{
		new pName [64], string [64];
		GetPlayerName (playerid, pName,sizeof (pName));
		format (string, sizeof (string), "O jogador %s pegou seu kit medico.(/Kitmedico)", pName);
		SetPlayerHealth(playerid,100);
		SetPlayerArmour (playerid, 100);
		SendClientMessageToAll (-1, string);
		return 1;
	}
	if(strcmp(cmdtext, "/KitMorte", true)==0){
		SetPlayerHealth(playerid,0);
		return 1;
	}
	return false;
}
Sу ir incrementando.
Reply


Messages In This Thread
Sobre comandos! - by Iniciante12 - 07.09.2016, 01:15
Re: Sobre comandos! - by Monotox - 07.09.2016, 01:24
Monotox - by Ender_ - 07.09.2016, 01:25
Re: Sobre comandos! - by Monotox - 07.09.2016, 01:28
Re: Sobre comandos! - by Andinho - 07.09.2016, 03:01
Re: Sobre comandos! - by SmokiieGamer - 07.09.2016, 11:56
Re: Sobre comandos! - by ipsLuan - 07.09.2016, 12:05
Re: Sobre comandos! - by SmokiieGamer - 07.09.2016, 12:15

Forum Jump:


Users browsing this thread: 1 Guest(s)