Checkpoint not showing any more when doing /loc
#1

So basically in my server when the officer does /loc a checkpoint starts to show were he is and keeps updating. however when i do it now it does not?


PHP код:
CMD:20(playeridparams[])
{
    if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pMember] == 20)
    {
        if ((
no20) && EventKernel[EventCreator] != playerid)
        {
        
SendClientMessageEx(playeridCOLOR_GRAD2"   20s have been disabled for training, start calling your streets!!");
        return 
1;
        }
        if (
Pursuit[playerid] != 1)
        {
            new
            
zone[512],
            
string[128 MAX_PLAYER_NAME],
            
dcount;
            
GetPlayer3DZone(playeridzonesizeof(zone));
            foreach(
Playeri)
            {
                if(
PlayerInfo[i][pDispatchOn] == 1dcount ++;
            }
            if(
dcount 0)
            {
                new 
hoursminutesseconds;
                
gettime(hoursminutesseconds);
                new 
nextslot GetNextSituationSlot();
                
format(stringsizeof(string), "** DISPATCH-0: Situation %d has been created at the %s **"nextslotzone);
                
SendDispatchMessage(string);
                
format(stringsizeof(string), "** DISPATCH-0: Description of situation: Pursuit In Progress **");
                
SendDispatchMessage(string);
                
format(stringsizeof(string), "** DISPATCH-0: Status of the situation is: Code 3 [%d:%d:%d]**"hoursminutesseconds);
                
SendDispatchMessage(string);
                
                
RecentSituation nextslot;
                
CreateDPSituation(nextslot3zone"Pursuit");
            }
            new 
callsign[10];
            
GetPlayerCallSign(playeridcallsign);
            
format(stringsizeof(string), "(radio) %s-%d send me additionals, I have an active pursuit!"callsignPlayerInfo[playerid][pBadgeNum]);
            
SetPlayerChatBubble(playerid,string,COLOR_WHITE,10.0,5000);
            foreach(
Playeri)
            {
                   if(
PlayerInfo[i][pMember] != 0)
                   {
                     
PlayAudioStreamForPlayer(i"http://soundsfree.com/sounds/genbroadcast.mp3");
                }
            }
            
format(stringsizeof(string), "** DISPATCH: Pursuit is in progress on behalf of %s-%d (%d), current location is %s. **"callsignPlayerInfo[playerid][pBadgeNum], playeridzone);
            
Pursuit[playerid] = 1;
            
SendDispatchMessage(string);
            
SendClientMessageEx(playeridCOLOR_WHITE"Type /c20 to remove your pursuit.");
            
SetTimerEx("Update20",3000,1,"i",playerid);
        }
        else
        {
            
SendClientMessageEx(playeridCOLOR_GREY"  You already have an active backup request!");
        }
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_GRAD2"   You are not a Cop / FBI / Coastguard!");
    }
    return 
1;
}
public 
KillAllCopCheckpoint(playerid)
{
    foreach(
Playeri)
     {
       if(
IsACop(i) || IsALVMPDCop(i))
         {
           
DisablePlayerCheckpoint(i);
         }
     }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)