17.04.2011, 18:58
Well I'm basically in need of a rather small favor and that's making this snippet only for administrators as I am a novice in that area and haven't tried it before AT ALL, I'd appreciate if you did it for me to show as well as giving it to me, thanks.
Код:
command(setrace, playerid, params[]) { new pID, tID; if(sscanf(params, "ui", pID, tID)) return SendClientMessage(playerid, 0xAFAFAFAA, "Usage : /setrace [playerid/name] [teamid]"); if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, 0xAFAFAFAA, "This player is not connected."); SetPlayerTeam(pID, tID); return SendClientMessage(playerid,0xAFAFAFAA, "Changed the player's race"); }