08.12.2009, 14:49
thanks it worked and yes
i want to use it in this command and when the player types this so for rcon Admins print "someone used /setskin"
but i doesnt know how to ?
Код:
stock Admin(msg[]) { for(new i 0; i<GetMaxPlayers(); i++ { if(IsPlayerConnected(i) && IsPlayerAdmin(i)) SendClientMessage(i,white,msg); } }
i want to use it in this command and when the player types this so for rcon Admins print "someone used /setskin"
but i doesnt know how to ?
Код:
if(strcmp(cmd, "/setskin", true) == 0) { new tmp[256]; if(!cmdtext[8])return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /setskin [skinid]"); tmp = strtok(cmdtext, idx); SetPlayerSkin(playerid,strval(tmp)); SendClientMessage(playerid, COLOR_YELLOW, "Skin Changed."); return 1; }