02.09.2012, 11:42
Incudtions
You must have this includtions
zcmd
Starting off
now befor starting you must have this function by me :3
pawn Code:
stock CreateGps(gpsid,Float:x,Float:y,Float:z)
{
new playerid;
SetPlayerMapIcon(playerid,gpsid,x,y,z,00 ,COLOR_RED1,MAPICON_GLOBAL_CHECKPOINT);
if(IsPlayerInRangeOfPoint(playerid,10,x,y,z))
{
RemovePlayerMapIcon(playerid,gpsid);
SendClientMessage(playerid,COLOR_RED1,"You have reched your place");
}
return playerid;
}
1- how to create a gps?
You can create a gps like this:
pawn Code:
CreateGps(id,x,y,z);
pawn Code:
CMD:gps(playerid,params[])
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"GPS location","\nLSPD\n24/7(unity)","Set GPS","Close");
return 1;
}
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
switch(listitem)
{
case 0:
{
CreateGps(1,1553.4988, -1675.9509, 16.3764);
}
case 1:
{
CreateGps(2,832.08, -1842.65, 12.98);
}
}
}
}
return 1;
}