Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dialog:DIALOG_GPS(playerid, response, listitem, inputtext[])
- {
- if(response)
- {
- if(!strcmp(inputtext, "Cargaison", false))
- {
- if(!IsCargaisonON())
- return SendClientMessage(playerid, COLOR_BLANC, ""COLOR_BLEU_2"[GPS] "COLOR_ORANGE_2"Aucune cargaison n'est lancée");
- }
- foreach(new i:GPS)
- {
- if(!strcmp(inputtext, gpsInfo[i][e_Name], false))
- {
- if(playerInfo[playerid][E_GPS])
- {
- playerInfo[playerid][E_GPS] = false;
- DestroyPlayerObject(playerid, playerInfo[playerid][E_GPSObjID]);
- DisablePlayerRaceCheckpoint(playerid);
- }
- playerInfo[playerid][E_GPS] = true;
- playerInfo[playerid][E_GPSID] = i;
- playerInfo[playerid][E_GPSObjID] = CreatePlayerObject(playerid, GPS_MODEL, 0, 0, 0, 0.0, 0.0, 0);
- SetPlayerRaceCheckpoint(playerid, 2, gpsInfo[playerInfo[playerid][E_GPSID]][e_PosX], gpsInfo[playerInfo[playerid][E_GPSID]][e_PosY], gpsInfo[playerInfo[playerid][E_GPSID]][e_PosZ], 0.0, 0.0, 0.0, 2.0);
- break;
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement