Advertisement
ANDR3X

sdqdqsdqsd

Aug 30th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.22 KB | None | 0 0
  1. Dialog:DIALOG_GPS(playerid, response, listitem, inputtext[])
  2. {
  3.     if(response)
  4.     {
  5.         if(!strcmp(inputtext, "Cargaison", false))
  6.         {
  7.             if(!IsCargaisonON())
  8.                 return SendClientMessage(playerid, COLOR_BLANC, ""COLOR_BLEU_2"[GPS] "COLOR_ORANGE_2"Aucune cargaison n'est lancée");
  9.         }
  10.         foreach(new i:GPS)
  11.         {
  12.             if(!strcmp(inputtext, gpsInfo[i][e_Name], false))
  13.             {
  14.                 if(playerInfo[playerid][E_GPS])
  15.                 {
  16.                     playerInfo[playerid][E_GPS] = false;
  17.                     DestroyPlayerObject(playerid, playerInfo[playerid][E_GPSObjID]);
  18.                     DisablePlayerRaceCheckpoint(playerid);
  19.                 }
  20.                 playerInfo[playerid][E_GPS] = true;
  21.                 playerInfo[playerid][E_GPSID] = i;
  22.                 playerInfo[playerid][E_GPSObjID] = CreatePlayerObject(playerid, GPS_MODEL, 0, 0, 0, 0.0, 0.0, 0);
  23.                 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);
  24.                 break;
  25.             }
  26.         }
  27.     }
  28.     return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement