Help In CP Distance
#1

Hello
I am Scripting a new Server. so i need a Help in getting nearest Checkpoint :

Here is the code

PHP Code:
public StartMission(playerid)
{
    if(
TypeFlight[playerid] == 1// Andromada
    
{
        
StartedMission[playerid] = 1;
        new 
rand random(sizeof(ALocations));
        new 
string2[65], message[128];
        
SetPlayerFlightCheckpoint(playeridALocations[rand][LocX],ALocations[rand][LocY],ALocations[rand][LocZ], 15.0);
        
format(string2sizeof(string2), "%s"ALocations[rand][LocationName]); //PASSWORD
        
strmid(FirstAPName[playerid], string20strlen(string2), 128); //PASSWORD
        //FirstAPName[playerid] = ALocations[rand][LocationName];
        //FirstAPName[playerid] = AndroDName;
        
format(message,sizeof(message), "Head to {1B8AE4}%s {FFFFFF}and pick up the cargo goods."ALocations[rand][LocationName]);
        
SendClientMessage(playeridCOLOR_WHITEmessage);
        
TypeFlight[playerid] = 1;
        
MissionStage[playerid] = 1;
        
WantsRecording[playerid] = 1;
        
Pos1[playerid] = ALocations[rand][LocX];
        
Pos2[playerid] = ALocations[rand][LocY];
        
Pos3[playerid] = ALocations[rand][LocZ]; 
Reply


Messages In This Thread
Help In CP Distance (rep ++ ) - by Shaheen - 16.09.2016, 13:56
Re: Help In CP Distance - by Shaheen - 16.09.2016, 16:48
Re: Help In CP Distance - by Shaheen - 16.09.2016, 20:02
Re: Help In CP Distance - by Shinja - 16.09.2016, 20:13
Re: Help In CP Distance - by Shaheen - 16.09.2016, 20:18
Re: Help In CP Distance - by Konstantinos - 16.09.2016, 21:01
Re: Help In CP Distance - by Shaheen - 17.09.2016, 10:00
Re: Help In CP Distance - by Konstantinos - 17.09.2016, 10:08
Re: Help In CP Distance - by Shaheen - 17.09.2016, 11:52
Re: Help In CP Distance - by Shinja - 17.09.2016, 12:01
Re: Help In CP Distance - by Shaheen - 17.09.2016, 12:03
Re: Help In CP Distance - by Shaheen - 17.09.2016, 16:26
Re: Help In CP Distance - by Shaheen - 18.09.2016, 16:47
Re: Help In CP Distance - by Shaheen - 19.09.2016, 14:48
Re: Help In CP Distance - by Shaheen - 19.09.2016, 16:24

Forum Jump:


Users browsing this thread: 4 Guest(s)