09.07.2011, 07:08
So My Homemade Command Is This RIGHT NOW
What do i have to add to make it detect ids if i do /jail [id] ?
Код:
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.");
}

