#6

pawn Код:
CMD:slap(playerid, params[])
{
    new Float:X, Float:Y, Float:Z, str[128], id, name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
    if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /slap <player name/id>");
    else
    {
        GetPlayerPos(id, X, Y, Z);
        PlayerPlaySound(id, 1190, X, Y, Z);
        SetPlayerPos(id, X, Y, Z+7);
        TogglePlayerControllable(id, true);
        GetPlayerName(playerid, name, MAX_PLAYER_NAME);
        GetPlayerName(id, name2, MAX_PLAYER_NAME);
        format(str, sizeof(str), "%s was slapped by %s", name2, name);
        SendClientMessageToAll(COLOR_DARKRED, str);
    }
    return 1;
}
Reply


Messages In This Thread
Hmm? - by Luis- - 29.11.2010, 15:45
Re: Hmm? - by MadeMan - 29.11.2010, 15:48
Re: Hmm? - by Luis- - 29.11.2010, 15:50
Re: Hmm? - by Luis- - 29.11.2010, 16:23
Re: Hmm? - by Scenario - 29.11.2010, 16:24
Re: Hmm? - by [03]Garsino - 29.11.2010, 16:27
Re: Hmm? - by Luis- - 29.11.2010, 16:27
Re: Hmm? - by Scenario - 29.11.2010, 16:33
Re: Hmm? - by [03]Garsino - 29.11.2010, 16:35
Re: Hmm? - by Luis- - 29.11.2010, 16:41

Forum Jump:


Users browsing this thread: 1 Guest(s)