How to make a funny command for admins? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make a funny command for admins? (
/showthread.php?tid=188250)
How to make a funny command for admins? - Larsey123IsMe - 06.11.2010
I have this ide, but i dont know how i can make it -.-
Idea:
When i type this in chat:
/facepalm 11(<-playerid)
then should this text show up for all:
Command ONLY for admin!
Re: How to make a funny command for admins? -
mmrk - 06.11.2010
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;
}
Re: How to make a funny command for admins? -
HotRod - 06.11.2010
Quote:
I have this ide, but i dont know how i can make it -.-
|
You did make that idea. It came off a cnr server that you're administrator on.
/fail
Re: How to make a funny command for admins? - Larsey123IsMe - 06.11.2010
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?
Re: How to make a funny command for admins? -
Hal - 06.11.2010
Quote:
Originally Posted by HotRod
You did make that idea. It came off a cnr server that you're administrator on.
/fail
|
no, thats a /faceplam :P
Re: How to make a funny command for admins? - Larsey123IsMe - 07.11.2010
Quote:
Originally Posted by HotRod
You did make that idea. It came off a cnr server that you're administrator on.
/fail
|
Yes i make that idea!