/slap command
#2

pawn Код:
COMMAND:slap(playerid,params[])
{  
    new OtherPlayer, Msg,[150], Name[24], Message[150], OtherPlayerName[24];
    SendAdminText(playerid,"/slap", params);
   
    if (APlayerData[playerid][PlayerLevel] >= 2)
    {
        GetPlayerName(playerid, Name, sizeof(Name));
        GetPlayerName(OtherPlayer, OtherPlayerName, sizeof(OtherPlayerName));
        format(Msg, sizeof(MSg), "%s Slaps %s because %s", Name, OtherPlayerName, Message);
        SendClientMessageToAll(0xFFFFFFFF, Msg);
        SetPlayerHealth(OtherPlayer, 75);
    }
    else
    {
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
/slap command - by SomebodyAndMe - 21.11.2011, 18:32
Re: /slap command - by FireCat - 21.11.2011, 18:34
Re: /slap command - by sleepysnowflake - 21.11.2011, 18:35
Re: /slap command - by Kostas' - 21.11.2011, 18:37
Re: /slap command - by KingHual - 21.11.2011, 18:37
Re: /slap command - by SomebodyAndMe - 21.11.2011, 18:38
Re: /slap command - by Camacorn - 21.11.2011, 18:39
Re: /slap command - by KingHual - 21.11.2011, 18:39
Re: /slap command - by SomebodyAndMe - 21.11.2011, 18:40
Re: /slap command - by SomebodyAndMe - 21.11.2011, 18:50

Forum Jump:


Users browsing this thread: 7 Guest(s)