Check point not showing correct location
#4

PHP код:
    if(strcmp(cmd"/findcar"true) == 0// By CuervO_NegrO
    
{
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pPcarkey] == 9999)
            {
                
SendClientMessage(playeridCOLOR_GREY"You don't have a car");
                return 
1;
            }
            new 
carid PlayerInfo[playerid][pPcarkey];
            new 
Float:XFloat:YFloat:Z;
            new 
zone[MAX_ZONE_NAME];
            
GetVehicle2DZone(caridzoneMAX_ZONE_NAME);
            
GetVehiclePos(caridX,Y,Z);
            if(
Searching[playerid] == 0)
            {
                
Searching[playerid] = 1;
                
SetPlayerMapIcon(playerid500 playeridX,Y,Z41COLOR_YELLOWMAPICON_GLOBAL);
                
format(stringsizeof(string),"Your car is at %s, red marker has been set at the map. Type /foundit when you have found it.",zone);
                
SendClientMessage(playeridTEAM_GROVE_COLORstring);
            }
            else
            {
                
RemovePlayerMapIcon(playeridcarid+1);
                
SetPlayerMapIcon(playerid500 playeridX,Y,Z41COLOR_YELLOWMAPICON_GLOBAL);
                
format(stringsizeof(string),"Your car is at %s, red marker has been set at the map. Type /foundit when you have found it.",zone);
                
SendClientMessage(playeridTEAM_GROVE_COLORstring);
            }
        }
        return 
1;
    }
    
    if(
strcmp(cmd"/findcar2"true) == 0// By CuervO_NegrO
    
{
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pPcarkey2] == 9999)
            {
                
SendClientMessage(playeridCOLOR_GREY"You don't have a 2nd car");
                return 
1;
            }
            new 
carid PlayerInfo[playerid][pPcarkey2];
            new 
Float:XFloat:YFloat:Z;
            new 
zone[MAX_ZONE_NAME];
            
GetVehicle2DZone(caridzoneMAX_ZONE_NAME);
            
GetVehiclePos(caridX,Y,Z);
            if(
Searching[playerid] == 0)
            {
                
Searching[playerid] = 1;
                
SetPlayerMapIcon(playerid500 playeridX,Y,Z41COLOR_YELLOWMAPICON_GLOBAL);
                
format(stringsizeof(string),"Your car is at %s, red marker has been set at the map. Type /foundit when you have found it.",zone);
                
SendClientMessage(playeridTEAM_GROVE_COLORstring);
            }
            else
            {
                
RemovePlayerMapIcon(playeridcarid+1);
                
SetPlayerMapIcon(playerid500 playeridX,Y,Z41COLOR_YELLOWMAPICON_GLOBAL);
                
format(stringsizeof(string),"Your car is at %s, red marker has been set at the map. Type /foundit when you have found it.",zone);
                
SendClientMessage(playeridTEAM_GROVE_COLORstring);
            }
        }
        return 
1;
    }
    
    if(
strcmp(cmd"/foundit"true) == 0// By CuervO_NegrO
    
{
        if(
IsPlayerConnected(playerid))
        {
            if(
Searching[playerid] == 0)
            {
                
SendClientMessage(playeridCOLOR_GREY"You are not searching your car");
                return 
1;
            }
            
RemovePlayerMapIcon(playerid500 playerid);
            
Searching[playerid] = 0;
            
SendClientMessage(playeridTEAM_GROVE_COLOR"* Marker Removed. Type /findcar(2) to create a marker on the car if you loose it again.");
        }
        return 
1;
    } 
Reply


Messages In This Thread
Check point not showing correct location - by kingchandio - 01.07.2011, 11:12
Re: Check point not showing correct location - by Vince - 01.07.2011, 11:15
Re: Check point not showing correct location - by kingchandio - 01.07.2011, 11:18
Re: Check point not showing correct location - by Shadoww5 - 01.07.2011, 11:56
Re: Check point not showing correct location - by kingchandio - 01.07.2011, 16:14
Re: Check point not showing correct location - by BigETI - 01.07.2011, 16:19
Re: Check point not showing correct location - by kingchandio - 01.07.2011, 16:35
Re: Check point not showing correct location - by Wesley221 - 01.07.2011, 16:37
Re: Check point not showing correct location - by kingchandio - 01.07.2011, 16:41

Forum Jump:


Users browsing this thread: 3 Guest(s)