Minor help with a snippet
#1

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");
}
Reply


Messages In This Thread
Minor help with a snippet - by Andregood - 17.04.2011, 18:58
Re: Minor help with a snippet - by iJumbo - 17.04.2011, 19:03
Re: Minor help with a snippet - by Stigg - 17.04.2011, 19:07
Re: Minor help with a snippet - by Andregood - 17.04.2011, 19:50

Forum Jump:


Users browsing this thread: 1 Guest(s)