How to make a funny command for admins?
#4

Quote:
Originally Posted by mmrk
Посмотреть сообщение
Using sscanf and zcmd it would look like this:

pawn Код:
CMD:facepalm(playerid, params[])
{
    new
        otherid,
        oName[MAX_PLAYER_NAME],
        string[64]
    ;
    if (!IsPlayerAdmin(playerid)) return 0; // Checks if player is logged in with rcon
    if(sscanf(params, "u", otherid)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /facepalm [id]");
   
    GetPlayerName(playerid, oName, sizeof(oName)); // Get the player name
    format(string, sizeof(string), "(FACEPALM) %s The doctor has detected a failz0r!", oName);
    SendClientMessageToAll(somecolor, string); // Sends this ^^ message to all
    return 1;
}
can you made the full script so i just can add the text to Pawno and save?
Reply


Messages In This Thread
How to make a funny command for admins? - by Larsey123IsMe - 06.11.2010, 23:07
Re: How to make a funny command for admins? - by mmrk - 06.11.2010, 23:19
Re: How to make a funny command for admins? - by HotRod - 06.11.2010, 23:31
Re: How to make a funny command for admins? - by Larsey123IsMe - 06.11.2010, 23:54
Re: How to make a funny command for admins? - by Hal - 06.11.2010, 23:55
Re: How to make a funny command for admins? - by Larsey123IsMe - 07.11.2010, 00:03

Forum Jump:


Users browsing this thread: 2 Guest(s)