Save jailer name
#1

Hello guys,
Today, I've made a command which I can get the name of Admin who jailed a player and the reason of it.
It works perfectly, but the main problem that when the player's disconnect, and reconnect, I can't get the name of the admin and the reason. THO..

this is the command to view players in jail :

PHP код:
dcmd_prison(playerid,params[])
{
    
#pragma unused params
    
new string[170];
    
SendClientMessage(playerid,COLOR_DEADCONNECT,"[[_PRISON_]]");
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
JailAdminTime[i] >= 1)
            {
                
format(string,sizeof(string),"[PRISON ADMIN] {FFFFFF}%s(%d): Emprisonnй par: {FF0000}%s {FFFFFF}Raison: {FF0000}%s.",PlayerName(i),i,jailed[i][administrateur],jailed[i][reason_jailed]);
                
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Save jailer name - by KillerDVX - 26.12.2015, 19:32
Re: Save jailer name - by SaltySandy - 26.12.2015, 19:34
Re: Save jailer name - by KillerDVX - 26.12.2015, 19:39
Re: Save jailer name - by SaltySandy - 26.12.2015, 19:46
Re: Save jailer name - by KillerDVX - 26.12.2015, 19:56
Re: Save jailer name - by SaltySandy - 26.12.2015, 19:58
Re: Save jailer name - by KillerDVX - 26.12.2015, 20:00
Re: Save jailer name - by SaltySandy - 26.12.2015, 20:04

Forum Jump:


Users browsing this thread: 1 Guest(s)