03.08.2011, 20:21
pawn Код:
CMD:jail(playerid,params[])
{
new id;
if(sscanf(params, "u", id)) SendClientMessage(playerid,COLOR_RED,"Usage: /jail <ID>");
else if(id == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Player Not Connected!");
else
{
if(PlayerInfo[playerid][pAdminLevel] >=10) return SendClientMessage(playerid,COLOR_RED,"You cannot use this command!");
{
new string[128];
format(string, sizeof(string), "%s has been sent to jail by an Admin",GetName(playerid));
SendClientMessageToAll(COLOR_RED, string);
RemovePlayerFromVehicle(id);
PlayerInfo[id][pJailed] = 1;
ResetPlayerWeapons(playerid);
SetPlayerInterior(id, 6);
SetPlayerPos(id, 265.000000,78.000000,1002.00000000);
SetPlayerVirtualWorld(id, 5);
}
return 1;
}
}
pawn Код:
C:\Documents and Settings\Chris\Desktop\Trucking Server\filterscripts\ShockeyAdmin.pwn(672) : warning 209: function "cmd_jail" should return a value