[Include] OnPlayerMarkMap
#12

This makes no sense for this, since it not a real system to detect where the player marked the map, just a little trick for it..

For the GPS thing you could do (I will do a complete example for it tomorrow):

Код:
//Top of the script:

new GPSx[MAX_PLAYERS];
new GPSy[MAX_PLAYERS];
new GPSz[MAX_PLAYERS];
new bool:GPSon[MAX_PLAYERS];

//command /gps:

SetPlayerMarkingMap(playerid,1);

// In the callback:

if(MarkID == 1)
{
GPSx[playerid] = X;
GPSy[playerid] = Y;
GPSz[playerid] = Z; // Not really needed...
GPSon[playerid] = true;
}

// Then create a timer which checks the distance etc.... and turns off if the destination is reached
I think you didn't really understand the sense for this...

GetPlayerMarkedPlace could be done, but isn't really needed because of the callback.
Reply


Messages In This Thread
OnPlayerMarkMap - by NaS - 11.09.2011, 03:05
Re: OnPlayerMarkMap - by Generation-X - 11.09.2011, 03:12
AW: OnPlayerMarkMap - by NaS - 11.09.2011, 03:14
Re: OnPlayerMarkMap - by PotH3Ad - 11.09.2011, 03:44
Re: OnPlayerMarkMap - by wups - 11.09.2011, 08:26
AW: OnPlayerMarkMap - by NaS - 11.09.2011, 12:25
Re: OnPlayerMarkMap - by TheArcher - 11.09.2011, 12:36
Re: OnPlayerMarkMap - by =WoR=G4M3Ov3r - 11.09.2011, 12:44
Re : OnPlayerMarkMap - by Naruto_Emilio - 11.09.2011, 12:48
AW: OnPlayerMarkMap - by NaS - 11.09.2011, 14:19
Re: OnPlayerMarkMap - by Kaperstone - 11.09.2011, 14:29
AW: OnPlayerMarkMap - by NaS - 11.09.2011, 14:35
Re: AW: OnPlayerMarkMap - by Kaperstone - 11.09.2011, 14:39
AW: OnPlayerMarkMap - by NaS - 11.09.2011, 14:52
Re: OnPlayerMarkMap - by Kar - 11.09.2011, 19:41
Re: OnPlayerMarkMap - by wups - 11.09.2011, 20:27
AW: OnPlayerMarkMap - by zaq.selfown - 12.09.2011, 06:15
AW: OnPlayerMarkMap - by NaS - 12.09.2011, 14:41

Forum Jump:


Users browsing this thread: 6 Guest(s)