[Ajuda] Convertendo strcmp para zcmd
#4

Tenta assim:
pawn Код:
CMD:matar(playerid, params[])
    {
        if(IsPlayerConnected(playerid))
        {
            new playa;
            if(sscanf(params, "u", playa))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /matar [id]");
                return 1;
            }
            GetPlayerName(playa, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(Player[playerid][pAdmin] >=4)
            {
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        SetPlayerHealth(playa, 0.0);
                        SetPlayerVirtualWorld(playa,0);
                        format(string9, sizeof(string9), "AdmCmd: %s ganhou uma morte de: %s",giveplayer ,sendername);
                        ABroadCast(COR_CV,string9,1);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COR_ERRO, "   Vocк nгo estб autorizado a usar este comando!");
            }
        }
        return true;
    }
Reply


Messages In This Thread
Convertendo strcmp para zcmd - by _Play_ - 07.10.2014, 19:58
Re: Convertendo strcmp para zcmd - by DavidCosta - 07.10.2014, 21:34
Re: Convertendo strcmp para zcmd - by _Play_ - 07.10.2014, 23:51
Re: Convertendo strcmp para zcmd - by DavidCosta - 08.10.2014, 05:16
Re: Convertendo strcmp para zcmd - by _Play_ - 08.10.2014, 16:28
Re: Convertendo strcmp para zcmd - by Artista - 08.10.2014, 17:15
Re: Convertendo strcmp para zcmd - by _Play_ - 08.10.2014, 18:22

Forum Jump:


Users browsing this thread: 1 Guest(s)