Checkpoint Problem
#4

This is the check points
PHP код:
new Float:checkCoords[MAX_POINTS][4] = {
{
293.0301,-38.5132,294.7196,-37.0548}, //Ammunation 
and
PHP код:
new Float:checkpoints[MAX_POINTS][4] = {
{
293.6689,-37.6174,1001.5156,3.0}, //Ammunation 
The command
PHP код:
if(getCheckpointType(playerid) == CP_Ammunation)
    {
        if(
zones[current_zone][zone_name] == zones[241][zone_name] || zones[current_zone][zone_name] == zones[242][zone_name] ||
        
zones[current_zone][zone_name] == zones[243][zone_name])
        {
            if(
AmmunationRobbedRecently >= 1)
            {
                
SendClientMessage(playerid,COLOR_ERROR,"The Ammunation has been robbed recently.");
                return 
1;
            }
            if(
RobSkill[playerid] < 20)
            {
                
SendClientMessage(playerid,COLOR_ERROR,"You must have a robbing skill level of 20 to rob Ammunation. Check /robskill to see what you can rob.");
                return 
1;
            }
            
AmmunationRobbedRecently =320;
            
RobbingAmmunation[playerid] =25;
            
IncreaseWantedLevel(playerid,4);
            
IncreasePlayerScore(playerid,1);
            
format(string,sizeof(string),"~w~Robbing Ammunation.~n~~r~Finish Robbery in: %d seconds.~n~~b~Police are on the way.",RobbingAmmunation[playerid]);
            
GameTextForPlayer(playeridstring30003);
            
format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Ammunation! Get To Ammunation and arrest the suspect.",PlayerName(playerid),playerid);
            
SendClientMessageToAllCops(string);
            
format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Ammunation ..",PlayerName(playerid),playerid);
            
SendClientMessageToAll(COLOR_RED,string);
            
format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Ammunation ..",PlayerName(playerid),playerid);
            
IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
            return 
1;
        }
        return 
1
Reply


Messages In This Thread
Checkpoint Problem - by nor15 - 05.02.2013, 23:24
Re: Checkpoint Problem - by nor15 - 06.02.2013, 01:10
Re: Checkpoint Problem - by AphexCCFC - 06.02.2013, 01:13
Re: Checkpoint Problem - by nor15 - 06.02.2013, 01:43
Re: Checkpoint Problem - by mrtms - 06.02.2013, 03:06
Re: Checkpoint Problem - by nor15 - 06.02.2013, 03:17
Re: Checkpoint Problem - by mrtms - 06.02.2013, 03:23
Re: Checkpoint Problem - by nor15 - 06.02.2013, 03:25
Re: Checkpoint Problem - by mrtms - 06.02.2013, 03:34
Re: Checkpoint Problem - by nor15 - 06.02.2013, 03:39

Forum Jump:


Users browsing this thread: 1 Guest(s)