02.09.2012, 12:00
Quote:
Incudtions You must have this includtions zcmd Starting off now befor starting you must have this function by me :3 pawn Code:
1- how to create a gps? You can create a gps like this: pawn Code:
pawn Code:
pawn Code:
|
Code:
You must have these includes zcmdHow To Create A GPSBefore starting you must have this function by me.now lets get started: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 reached your desired location."); } return playerid;}
You can create a GPS like this:
2- How to use itpawn Code:CreateGps(id,x,y,z);
and this on OnDialogResponse CallBackpawn 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;}