[Ajuda] Dois comandos mesma funзгo
#5

Quote:
Originally Posted by MarcoAurelio
Посмотреть сообщение
Nгo sei lhe responder ao certo pois sou iniciante em pawno, tente assim..
Код:
CMD:kill(playerid) || suicidio(playerid)
{
	SetPlayerHealthEx(playerid, 0);
	return 1;
}
Obs* Nгo sei se funciona..
Nгo funciona amigгo, Nгo й sendo ignorante mas antes de ajudar tenha certeza de que vocк jб aprendeu.
PHP код:
CMD:me(playeridparams[])
{
    new 
funcao[30], aname[MAX_PLAYER_NAME], string[155];
    if(!
IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1"[ ERRO ] {FF0000}Este player nгo estб conectado no servidor!");
    if(
sscanf(params"s[30]"funcao)) return SendClientMessage(playerid, -1"[ ERRO ] {FF0000}use: /me [kill / suicidio]");
    
GetPlayerName(playeridanamesizeof(aname));
    if(
strfind(funcao"kill"true) != -1)
    {
        
format(stringsizeof(string), "[ BRADOKS ] O(A) player %s morreu!"aname);
        
SendClientMessageToAll(0xFF0000AAstring);
        
SetPlayerHealth(playerid0);
        return 
1;
    }
    else if(
strfind(funcao"suicidio"true) != -1)
    {
        
format(stringsizeof(string), "[ BRADOKS ] O(A) player %s cometeu suicidio!"aname);
        
SendClientMessageToAll(0xFF0000AAstring);
        
SetPlayerHealth(playerid0);
        return 
1;
    }
    return 
1;

Reply


Messages In This Thread
Dois comandos mesma funзгo - by pedrotvr - 22.09.2015, 01:52
Re: Dois comandos mesma funзгo - by MarcoAurelio - 22.09.2015, 01:57
Re: Dois comandos mesma funзгo - by pedrotvr - 22.09.2015, 02:00
Re: Dois comandos mesma funзгo - by MarcoAurelio - 22.09.2015, 02:02
Re: Dois comandos mesma funзгo - by [BOPE]Seu._.Madruga - 22.09.2015, 02:10
Re: Dois comandos mesma funзгo - by MarcoAurelio - 22.09.2015, 02:11
Re: Dois comandos mesma funзгo - by IgorLuiz - 22.09.2015, 02:14
Re: Dois comandos mesma funзгo - by [BOPE]Seu._.Madruga - 22.09.2015, 02:14
Re: Dois comandos mesma funзгo - by CZ - 22.09.2015, 02:15
Re: Dois comandos mesma funзгo - by pedrotvr - 25.09.2015, 08:19

Forum Jump:


Users browsing this thread: 1 Guest(s)