#1

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

PHP код:
CMD:jail(playeridparams[])
{
    if(
pInfo[playerid][AdminLevel] >= 1) return SendClientMessage(playerid, -1,"{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command.");
    {
           new 
idstring[64],reason[100], admin;
           if(
sscanf(params"ds",idreason)) 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(id18);
           
SetPlayerPos(id1710.433715,-1669.379272,20.225049);
           
SetPlayerVirtualWorld(id10);
           
SetPlayerHealth(id9999999);
           
ResetPlayerWeapons(id);
           
GetPlayerName(idreason,(admin));
           
format(stringsizeof string"{FF0000}[SYSTEM]: %s has been jailed by %s | Reason: %s"idreasonadmin);
           
SendClientMessageToAll(-1string);
    }
    return 
1;

Reply


Messages In This Thread
Jail - by Glossy42O - 22.07.2015, 17:29
Re: Jail - by DarkLored - 22.07.2015, 17:32
Re: Jail - by SilentSoul - 22.07.2015, 17:33
Re: Jail - by Glossy42O - 22.07.2015, 17:35
Re: Jail - by SilentSoul - 22.07.2015, 17:37
Re: Jail - by DarkLored - 22.07.2015, 17:44
Re: Jail - by Glossy42O - 22.07.2015, 18:31

Forum Jump:


Users browsing this thread: 2 Guest(s)