22.07.2015, 17:29
Hello lads,
I'm experiencing a problem with my jail command.
So basically i cannot see the name who jailed the person i cannot see the jailed person itself and i can't see the reason.
I got one more problem, i can jail myself twice? I tried to fix it but i couldn't
I'm experiencing a problem with my jail command.
So basically i cannot see the name who jailed the person i cannot see the jailed person itself and i can't see the reason.
I got one more problem, i can jail myself twice? I tried to fix it but i couldn't
PHP код:
CMD:jail(playerid, params[])
{
if(pInfo[playerid][AdminLevel] >= 1) return SendClientMessage(playerid, -1,"{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command.");
{
new id, string[64],reason[100], admin;
if(sscanf(params, "ds",id, reason)) return SendClientMessage(playerid, -1, "{FF0000}[SYSTEM ERROR]: {FFFFFF}USAGE: /jail [id] [reason]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "{FF0000}[SYSTEM ERROR]: The ID you have inputted is incorrect");
SetPlayerInterior(id, 18);
SetPlayerPos(id, 1710.433715,-1669.379272,20.225049);
SetPlayerVirtualWorld(id, 10);
SetPlayerHealth(id, 9999999);
ResetPlayerWeapons(id);
GetPlayerName(id, reason,(admin));
format(string, sizeof string, "{FF0000}[SYSTEM]: %s has been jailed by %s | Reason: %s", id, reason, admin);
SendClientMessageToAll(-1, string);
}
return 1;
}