SFCRRPG HELP
#1

Please anyone help me in SFCRRPG GM by Stevo27.. It is a good GM but got few bugs. Cant use /kidnap /tie or being a cop we cant get the criminal onto the vehicle. Please anyone send me a compiled non-buggy version of SFCRRPG to me or atleast help me clearing'em
Thank you.

My Skype ID : ponagandlamanoj

******** : http://www.********.com/pmanoj.pandu
Reply
#2

I gave you my copy of Gamemode. You already tested it on my server right..
Reply
#3

KIDNAP and UNTIE commands.

pawn Код:
dcmd_kidnap(playerid,params[])
{
    new string[128];
    new ID;
    if(sscanf(params, "u", ID))
    {
        SendClientMessage(playerid,COLOR_ERROR,"USAGE: /kidnap (Player Name/ID)");
        return 1;
    }
    if(IsSpawned[playerid] != 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command.");
        return 1;
    }
    if(IsFrozen[playerid] == 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You have been frozen by a Server Administrator. You cannot use this command.");
        return 1;
    }
    if(LastVehicle[playerid] == 0)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You must enter a vehicle before attempting to kidnap a player.");
        return 1;
    }
    if(InAdminMode[ID] == 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command on this player because they are in Administrator mode.");
        return 1;
    }
    if(IsKidnapped[playerid] == 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You are kidnapped. You cannot use this command.");
        return 1;
    }
    if(IsKidnapped[ID] == 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"They are kidnapped. You cannot kidnap them twice.");
        return 1;
    }
    if(gTeam[playerid] != TEAM_KIDNAP)
    {
        SendClientMessage(playerid,COLOR_ERROR,"Only kidnappers can use this command to kidnap players.");
        return 1;
    }
    if(!IsPlayerConnected(ID))
    {
        format(string,sizeof(string),"The player ID (%d) is not connected to the server. You cannot kidnap them",ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    if(GetDistanceBetweenPlayers(playerid,ID) > 4)
    {
        format(string,sizeof(string),"%s(%d) is too far away. You cannot reach him to kidnap him.",PlayerName(ID),ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You cannot kidnap someone while in a vehicle. Exit the vehicle first.");
        return 1;
    }
    if(GetPlayerState(ID) == PLAYER_STATE_DRIVER || GetPlayerState(ID) == PLAYER_STATE_PASSENGER)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You cannot kidnap someone while they are in a vehicle. Get them to exit the vehicle first.");
        return 1;
    }
    if(playerid == ID)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You cannot kidnap yourself, how can you even manage that?");
        return 1;
    }
    if(IsSpawned[ID] != 1)
    {
        format(string,sizeof(string),"%s(%d) is not spawned. You cannot kidnap dead people ..",PlayerName(ID),ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    if(IsFrozen[ID] == 1)
    {
        format(string,sizeof(string),"%s(%d) is frozen by a Server Administrator. You cannot kidnap them.",PlayerName(ID),ID);
        SendClientMessage(playerid,COLOR_ERROR,string);
        return 1;
    }
    if(AttemptedToKidnapRecently[playerid] >= 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You are tired from your last kidnap attempt. Please wait before trying to kidnap again.");
        return 1;
    }
    if(HasKidnappedRecently[playerid] >= 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You are tired from your last kidnap. Please wait before kidnapping someone again.");
        return 1;
    }
    if(HasRope[playerid] == 0)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You must have rope in order to use this command. Buy one from Supa Save.");
        return 1;
    }
    new crand = random(100);
    if(crand <= 30)
    {
        SendClientMessage(playerid,COLOR_ERROR,"Kidnap attempt failed. The player slipped out of your grasp.");
        AttemptedToKidnapRecently[playerid] =60;
        return 1;
    }
    if(GetDistanceBetweenPlayers(playerid,ID) <= 4 && crand > 30)
    {
        new current_zone = player_zone[playerid];
   
        SendClientMessage(playerid,COLOR_DEADCONNECT,"[[_Kidnapped Player_]]");
        format(string,sizeof(string),"You have grabbed %s(%d), tied them up with your rope and thrown them into your vehicle.",PlayerName(ID),ID);
        SendClientMessage(playerid,COLOR_RED,string);
        IncreaseWantedLevel(playerid,8);
        HasKidnappedRecently[playerid] =300;
        HasRope[playerid] --;
        IncreasePlayerScore(playerid,3);
       
        SendClientMessage(ID,COLOR_DEADCONNECT,"[[_Kidnapped_]]");
        format(string,sizeof(string),"%s(%d) has tied you up and thrown you into their vehicle!. If you have scissors you can /cutrope.",PlayerName(playerid),playerid);
        SendClientMessage(ID,COLOR_RED,string);
        PutPlayerInVehicle(ID,LastVehicle[playerid],1);
        TogglePlayerControllable(ID,0);
        IsKidnapped[ID] =120;
       
        format(string,sizeof(string),"[KIDNAP] %s(%d) has tied %s(%d) up and thrown them into their vehicle!",PlayerName(playerid),playerid,PlayerName(ID),ID);
        SendClientMessageToAll(COLOR_RED,string);
       
        format(string,sizeof(string),"[POLICE RADIO] %s(%d) has tied %s(%d) up with rope and thrown them into their vehicle! Location: %s",PlayerName(playerid),playerid,PlayerName(ID),ID,zones[current_zone][zone_name]);
        SendClientMessageToAllCops(string);
        return 1;
    }
    return 1;
}

dcmd_untie(playerid,params[])
{
    new string[128];
    new ID;
    if(sscanf(params, "u", ID))
    {
        SendClientMessage(playerid,COLOR_ERROR,"USAGE: /untie (Player Name/ID)");
        return 1;
    }
    if(IsSpawned[playerid] != 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command.");
        return 1;
    }
    if(IsKidnapped[playerid] == 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You are kidnapped. You cannot use this command.");
        return 1;
    }
    if(IsFrozen[playerid] == 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You have been frozen by a Server Administrator. You cannot use this command.");
        return 1;
    }
    if(IsCuffed[playerid] == 1)
    {
        SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command while cuffed by law enforcement.");
        return 1;
    }
    if(IsKidnapped[ID] == 0)
    {
        SendClientMessage(playerid,COLOR_ERROR,"This player is not kidnapped. You have no reason to untie them.");
        return 1;
    }
    format(string,sizeof(string),"You have untied %s(%d) from their rope and they are now free to go.",PlayerName(ID),ID);
    SendClientMessage(playerid,COLOR_ERROR,string);
   
    format(string,sizeof(string),"You have been untied by %s(%d) from your rope and you are now free to go.",PlayerName(playerid),playerid);
    SendClientMessage(ID,COLOR_ERROR,string);
    TogglePlayerControllable(ID,1);
    IsKidnapped[ID] =0;
    return 1;
}
DETAIN and DROPOFF
pawn Код:
dcmd_detain(playerid,params[])
{
    new string[128];
    new ID;
    if(sscanf(params, "u", ID))
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[USAGE] {FFFFFF}/detain (Player Name/ID)");
        return 1;
    }
    if(IsSpawned[playerid] != 1)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You must be alive and spawned in order to be able to use this command.");
        return 1;
    }
    if(IsFrozen[playerid] == 1)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You cannot use this command while you have been frozen by a server administrator.");
        return 1;
    }
    if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CIA)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}Only law enforcement can take suspects into their vehicle.");
        return 1;
    }
    if(!IsPlayerConnected(ID))
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}The player ID (%d) is not connected to the server. You cannot detain them",ID);
        SendClientMessage(playerid,-1,string);
        return 1;
    }
    if(IsKidnapped[playerid] == 1)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You cannot use this command while you are kidnapped.");
        return 1;
    }
    if(GetDistanceBetweenPlayers(playerid,ID) > 4)
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}%s(%d) is too far away. You cannot reach him to detain him.",PlayerName(ID),ID);
        SendClientMessage(playerid,-1,string);
        return 1;
    }
    if(IsCuffed[ID] == 0)
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}%s(%d) is not cuffed. You cannot detain them.",PlayerName(ID),ID);
        SendClientMessage(playerid,-1,string);
        return 1;
    }
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You cannot detain a suspect while in a vehicle. Exit the vehicle first.");
        return 1;
    }
    if(GetPlayerState(ID) == PLAYER_STATE_DRIVER || GetPlayerState(ID) == PLAYER_STATE_PASSENGER)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You cannot detain a suspect while they are in a vehicle. Get them to exit the vehicle first.");
        return 1;
    }
    if(playerid == ID)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You cannot detain yourself.");
        return 1;
    }
    if(IsSpawned[ID] != 1)
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}%s(%d) is not spawned.",PlayerName(ID),ID);
        SendClientMessage(playerid,-1,string);
        return 1;
    }
    if(IsFrozen[ID] == 1)
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}%s(%d) is frozen by a Server Administrator. You cannot detain them.",PlayerName(ID),ID);
        SendClientMessage(playerid,-1,string);
        return 1;
    }
    if(LastVehicle[playerid] == 0)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You must enter a vehicle before trying to detain a suspect.");
        return 1;
    }
    if(GetDistanceBetweenPlayers(playerid,ID) <= 4)
    {
        format(string,sizeof(string),"{30A2FF}Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has placed the suspect {FFFFFF}%s (%d){30A2FF} in his vehicle.",PlayerName(playerid),playerid,PlayerName(ID),ID);
        SendClientMessageToAll(-1,string);
        format(string,sizeof(string),"12Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has placed the suspect {FFFFFF}%s (%d){30A2FF} in his vehicle.",PlayerName(playerid),playerid,PlayerName(ID),ID);
        IRC_Say(gGroupID,IRC_CHANNEL,string);

        format(string,sizeof(string),"{30A2FF}Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has placed you in his vehicle. Your auto uncuff timer has been increased.",PlayerName(playerid),playerid);
        SendClientMessage(ID,-1,string);

        format(string,sizeof(string),"{30A2FF}You have detained {FFFFFF}%s (%d){30A2FF} into the last vehicle you were in.",PlayerName(ID),ID);
        SendClientMessage(playerid,-1,string);
        SendClientMessage(playerid,-1,"{30A2FF}You have recieved {FFD930}$1400{30A2FF} for detaining the suspect.");
        GivePlayerMoney(playerid,1400);

        //Put the suspect in the vehicle and increase cuff timer
        PutPlayerInVehicle(ID,LastVehicle[playerid],1);
        CuffTime[ID] =300;
        IsDetained[ID] =1;
        return 1;
    }
    return 1;
}

dcmd_dropoff(playerid,params[])
{
    new string[128];
    new ID;
    if(sscanf(params, "u", ID))
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[USAGE] {FFFFFF}/dropoff (Player Name/ID)");
        return 1;
    }
    if(IsKidnapped[playerid] == 1)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You cannot use this command while you are kidnapped.");
        return 1;
    }
    if(IsSpawned[playerid] != 1)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You must be alive and spawned in order to be able to use this command.");
        return 1;
    }
    if(IsFrozen[playerid] == 1)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You cannot use this command while you have been frozen by a server administrator.");
        return 1;
    }
    if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CIA)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}Only law enforcement can drop suspects off to Prison.");
        return 1;
    }
    if(!IsPlayerConnected(ID))
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}The player ID (%d) is not connected to the server. You cannot jail them",ID);
        SendClientMessage(playerid,-1,string);
        return 1;
    }
    if(InAdminMode[ID] == 1)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You cannot use this command on this player because they are in Administrator mode.");
        return 1;
    }
    if(GetDistanceBetweenPlayers(playerid,ID) > 6)
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}%s(%d) is too far away. You cannot reach him to jail him.",PlayerName(ID),ID);
        SendClientMessage(playerid,-1,string);
        return 1;
    }
    if(IsDetained[ID] == 0)
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}%s(%d) is not detained. You cannot jail them.",PlayerName(ID),ID);
        SendClientMessage(playerid,-1,string);
        return 1;
    }
    if(playerid == ID)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You cannot jail yourself.");
        return 1;
    }
    if(IsSpawned[ID] != 1)
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}%s(%d) is not spawned. You cannot jail dead people ..",PlayerName(ID),ID);
        SendClientMessage(playerid,-1,string);
        return 1;
    }
    if(IsFrozen[ID] == 1)
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}%s(%d) is frozen by a Server Administrator. You cannot jail them.",PlayerName(ID),ID);
        SendClientMessage(playerid,-1,string);
        return 1;
    }
    if(GetPlayerWantedLevel(ID) < 4)
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}%s(%d)'s wanted level is too low. You cannot jail them. Use /ticket (Player ID).",PlayerName(ID),ID);
        SendClientMessage(playerid,-1,string);
        return 1;
    }

    if(getCheckpointType(playerid) != CP_DropOff)
    {
        SendClientMessage(playerid,-1,"{1FCEFF}[INFO] {FFFFFF}You must be in the Checkpoint at the SFPD garage to drop off suspects.");
        return 1;
    }

    if(GetDistanceBetweenPlayers(playerid,ID) <= 6)
    {
        format(string,sizeof(string),"{1FCEFF}[INFO] {FFFFFF}You have been sent to Prison by Law Enforcement Officer %s(%d)",PlayerName(playerid),playerid);
        SendClientMessage(ID,-1,string);
        IsDetained[ID] =0;

        //Give the Police Officer Reward
        IncreasePlayerScore(playerid,4);


        //Show the jail TextDraw for suspect
        TextDrawShowForPlayer(ID,JailTimer[ID]);

        //Others
        ResetPlayerWeapons(ID);

        //Send the suspect to jail
        if(GetPlayerWantedLevel(ID) >= 4 && GetPlayerWantedLevel(ID) <= 10)
        {
            format(string,sizeof(string),"{30A2FF}Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has sent the low wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(playerid),playerid,PlayerName(ID),ID);
            SendClientMessageToAll(-1,string);
            format(string,sizeof(string),"7Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has sent the low wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(playerid),playerid,PlayerName(ID),ID);
            IRC_GroupSay(gGroupID,IRC_CHANNEL,string);

            //Give the police officer reward
            format(string,sizeof(string),"{30A2FF}You have recieved {FFD930}$3250{30A2FF} for sending the low wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(ID),ID);
            SendClientMessage(playerid,-1,string);
            GivePlayerMoney(playerid,3250);

            new rnd = random(sizeof(JailSpawnPoints));
            JailTime[ID] =50;
            IsCuffed[ID] =0;
            CuffTime[ID] =0;
            TotalJailTime[ID] =50;
            SetPlayerInterior(ID,10);
            SetPlayerPos(ID,JailSpawnPoints[rnd][0],JailSpawnPoints[rnd][1],JailSpawnPoints[rnd][2]);
            SetPlayerFacingAngle(ID,JailSpawnPoints[rnd][3]);
            TogglePlayerControllable(ID,1);
            StopLoopingAnim(ID);
            SetPlayerWantedLevel(ID,0);
            SetPlayerToTeamColour(ID);
            return 1;
        }
        if(GetPlayerWantedLevel(ID) >= 11 && GetPlayerWantedLevel(ID) <= 19)
        {
            format(string,sizeof(string),"{30A2FF}Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has sent the wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(playerid),playerid,PlayerName(ID),ID);
            SendClientMessageToAll(-1,string);
            format(string,sizeof(string),"7Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has sent the wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(playerid),playerid,PlayerName(ID),ID);
            IRC_GroupSay(gGroupID,IRC_CHANNEL,string);

            //Give the police officer reward
            format(string,sizeof(string),"{30A2FF}You have recieved {FFD930}$6500{30A2FF} for sending the wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(ID),ID);
            SendClientMessage(playerid,-1,string);
            GivePlayerMoney(playerid,6500);

            new rnd = random(sizeof(JailSpawnPoints));
            JailTime[ID] =100;
            IsCuffed[ID] =0;
            CuffTime[ID] =0;
            TotalJailTime[ID] =100;
            SetPlayerInterior(ID,10);
            SetPlayerPos(ID,JailSpawnPoints[rnd][0],JailSpawnPoints[rnd][1],JailSpawnPoints[rnd][2]);
            SetPlayerFacingAngle(ID,JailSpawnPoints[rnd][3]);
            TogglePlayerControllable(ID,1);
            StopLoopingAnim(ID);
            SetPlayerWantedLevel(ID,0);
            SetPlayerToTeamColour(ID);
            return 1;
        }
        if(GetPlayerWantedLevel(ID) >= 20 && GetPlayerWantedLevel(ID) <= 29)
        {
            format(string,sizeof(string),"{30A2FF}Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has sent wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(playerid),playerid,PlayerName(ID),ID);
            SendClientMessageToAll(-1,string);
            format(string,sizeof(string),"7Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has sent the wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(playerid),playerid,PlayerName(ID),ID);
            IRC_GroupSay(gGroupID,IRC_CHANNEL,string);

            //Give the police officer reward
            format(string,sizeof(string),"{30A2FF}You have recieved {FFD930}$9750{30A2FF} for sending the wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(ID),ID);
            SendClientMessage(playerid,-1,string);
            GivePlayerMoney(playerid,9750);

            new rnd = random(sizeof(JailSpawnPoints));
            JailTime[ID] =150;
            IsCuffed[ID] =0;
            CuffTime[ID] =0;
            TotalJailTime[ID] =150;
            SetPlayerInterior(ID,10);
            SetPlayerPos(ID,JailSpawnPoints[rnd][0],JailSpawnPoints[rnd][1],JailSpawnPoints[rnd][2]);
            SetPlayerFacingAngle(ID,JailSpawnPoints[rnd][3]);
            TogglePlayerControllable(ID,1);
            StopLoopingAnim(ID);
            SetPlayerWantedLevel(ID,0);
            SetPlayerToTeamColour(ID);
            return 1;
        }
        if(GetPlayerWantedLevel(ID) >= 30 && GetPlayerWantedLevel(ID) <= 39)
        {
            format(string,sizeof(string),"{30A2FF}Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has sent the most wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(playerid),playerid,PlayerName(ID),ID);
            SendClientMessageToAll(-1,string);
            format(string,sizeof(string),"7Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has sent the most wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(playerid),playerid,PlayerName(ID),ID);
            IRC_GroupSay(gGroupID,IRC_CHANNEL,string);

            //Give the police officer reward
            format(string,sizeof(string),"{30A2FF}You have recieved {FFD930}$13000{30A2FF} for sending the most wanted suspect {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(ID),ID);
            SendClientMessage(playerid,-1,string);
            GivePlayerMoney(playerid,13000);

            new rnd = random(sizeof(JailSpawnPoints));
            JailTime[ID] =200;
            IsCuffed[ID] =0;
            CuffTime[ID] =0;
            TotalJailTime[ID] =200;
            SetPlayerInterior(ID,10);
            SetPlayerPos(ID,JailSpawnPoints[rnd][0],JailSpawnPoints[rnd][1],JailSpawnPoints[rnd][2]);
            SetPlayerFacingAngle(ID,JailSpawnPoints[rnd][3]);
            TogglePlayerControllable(ID,1);
            StopLoopingAnim(ID);
            SetPlayerWantedLevel(ID,0);
            SetPlayerToTeamColour(ID);
            return 1;
        }
        if(GetPlayerWantedLevel(ID) >= 40)
        {
            format(string,sizeof(string),"{30A2FF}Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has sent the maniac {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(playerid),playerid,PlayerName(ID),ID);
            SendClientMessageToAll(-1,string);
            format(string,sizeof(string),"7Law Enforcement Officer {FFFFFF}%s (%d){30A2FF} has sent the maniac {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(playerid),playerid,PlayerName(ID),ID);
            IRC_GroupSay(gGroupID,IRC_CHANNEL,string);

            //Give the police officer reward
            format(string,sizeof(string),"{30A2FF}You have recieved {FFD930}$14700{30A2FF} for sending the maniac {FFFFFF}%s (%d){30A2FF} to Prison.",PlayerName(ID),ID);
            SendClientMessage(playerid,-1,string);
            GivePlayerMoney(playerid,14700);

            new rnd = random(sizeof(JailSpawnPoints));
            JailTime[ID] =250;
            IsCuffed[ID] =0;
            CuffTime[ID] =0;
            TotalJailTime[ID] =250;
            SetPlayerInterior(ID,10);
            SetPlayerPos(ID,JailSpawnPoints[rnd][0],JailSpawnPoints[rnd][1],JailSpawnPoints[rnd][2]);
            SetPlayerFacingAngle(ID,JailSpawnPoints[rnd][3]);
            TogglePlayerControllable(ID,1);
            StopLoopingAnim(ID);
            SetPlayerWantedLevel(ID,0);
            SetPlayerToTeamColour(ID);
            return 1;
        }
        return 1;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)