04.03.2012, 14:56
Why this Doesnt work
How to get the id typed in the command get into the sendclientmessage so it sends to the playerid you typed?
Код:
CMD:spm(playerid,params) { if(IsPlayerLuxAdmin(playerid)) { new string[140]; new id; format(string, sizeof(string), "PM from a silenced admin: %s", params); SendClientMessage(id, COLOR_WHITE, string); SendClientMessage(playerid, COLOR_RED, "Message sent"); return 1; } else { SendClientMessage(playerid, COLOR_RED, "[ERROR] "green"You need to be admin to use this command"); return 1; } }