[Help] /slap Help
#2

pawn Код:
if(strcmp("/slap", cmdtext, true) == 0)
{
     new Float:X, Float:Y, Float:Z;
     GetPlayerPos(playerid, X, Y, Z);
     new Float:Vida = GetPlayerHealth(playerid, Vida);
     SetPlayerPos(playerid, 0.0, 0.0, 0.0); // Mude aqui para as cordenadas que deseja setar o jogador
     if(GetPlayerHealth(playerid) == Vida))
     {
           for(new i = 0; i < GetMaxPlayers(); i++)
           {
                 if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] > 0)
                 {
                      format(string, sizeof(string), "O player %s levou um slasp e nгo perdeu life", playerB(playerid));
                      SendClientMessage(i, -1, string);
                 }
            }
            return 1;
     }
     else
     {
            SetPlayerPos(playerid, X, Y, Z);
            SetPlayerHealth(playerid, Vida);
            SendClientMessage(playerid, -1, "Vocк foi acusado de life hack e perdeu life!");
            SendClientMessage(playerid, 0xAFFFFFFA, "Com isso foi inocentado.");
            return 1;
     }
     return 1;
}
Tenta ai =).
Reply


Messages In This Thread
[Help] /slap Help - by Lukinhas_Ice - 21.07.2011, 22:04
Re: [Help] /slap Help - by Macintosh - 21.07.2011, 22:45
Re: [Help] /slap Help - by [BEP]AcerPilot - 21.07.2011, 23:21
Re: [Help] /slap Help - by Macintosh - 21.07.2011, 23:36
Re: [Help] /slap Help - by CocaC0la - 21.07.2011, 23:41
Re: [Help] /slap Help - by Shadoww5 - 21.07.2011, 23:59
Re: [Help] /slap Help - by Airton.Vitor - 22.07.2011, 00:57
Re: [Help] /slap Help - by [BEP]AcerPilot - 22.07.2011, 00:59
Re: [Help] /slap Help - by Shadoww5 - 22.07.2011, 01:43
Re: [Help] /slap Help - by [S]trong - 22.07.2011, 02:02

Forum Jump:


Users browsing this thread: 1 Guest(s)