Using the /command [ID] System, Please Help
#1

So My Homemade Command Is This RIGHT NOW

Код:
COMMAND:jail(playerid, params[])
{
    if(IsPlayerConnected(playerid))
	{
	    if(PlayerInfo[playerid][AdminLevel] >= 5)
	    {
			format(string, sizeof(string), "Admin %s has Placed %d in jail!", pname);
			SendClientMessageToAll(Red, string);
			SetPlayerPos(playerid,265.0000, 82.0000, 1002.0000);
	        SendClientMessage(playerid,0x00FFFFAA,"%s has placed you in jail!");
			new Float:pX, Float:pY, Float:pZ;
			PlayerPlaySound(playerid,1057,pX,pY,pZ);
			}
    		return 1;
			}
	    	else return SendClientMessage(playerid, 0xD8D8D8FF, "You are not allowed to use this command.");
	}
			else return SendClientMessage(playerid, 0xD8D8D8FF, "Player is not connected.");
}
What do i have to add to make it detect ids if i do /jail [id] ?
Reply


Messages In This Thread
Using the /command [ID] System, Please Help - by HayZatic - 09.07.2011, 07:08
Re: Using the /command [ID] System, Please Help - by [L3th4l] - 09.07.2011, 07:38
Re: Using the /command [ID] System, Please Help - by Bu$ter - 09.07.2011, 07:50

Forum Jump:


Users browsing this thread: 2 Guest(s)