Larsey123IsMe
Unregistered
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!
Posts: 60
Threads: 11
Joined: Oct 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
Larsey123IsMe
Unregistered
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?
Larsey123IsMe
Unregistered
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!