Advertisement
Guest User

Untitled

a guest
Jun 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.54 KB | None | 0 0
  1. CMD:v(playerid, params[]) {
  2.     new
  3.         option[16],
  4.         suboptions[129];
  5.  
  6.     if(sscanf(params, "s[16]S(0)[129]", option, suboptions)) return Scm(playerid, -1, "Vehicule : lock ; ranger ; spawn ; reparer ; forcerporte ; fils");
  7.  
  8.     switch(YHash(option, true, hash_fnv1)) {
  9.         case _H@f<creer>: {
  10.             new
  11.                 modelid,
  12.                 vehcol1,
  13.                 vehcol2,
  14.                 trespawn;
  15.            
  16.             if(sscanf(suboptions, "dddd", modelid, vehcol1, vehcol2, trespawn)) return Scm(playerid, -1, "UTILISATION: /v creer [ID Véhicule] [couleur 1] [couleur 2] [temps respawn]");
  17.            
  18.             new
  19.                 string[145],
  20.                 Float:vx,
  21.                 Float:vy,
  22.                 Float:vz,
  23.                 Float:vangle;
  24.  
  25.             GetPlayerPos(playerid, vx, vy, vz);
  26.             GetPlayerFacingAngle(playerid, vangle);
  27.             //CreateVehicleEx(modelid, vx, vy, vz, vangle, vehcol1, vehcol2, trespawn, bot, GetPlayerVirtualWorld(playerid));
  28.             SaveVehicle(playerid);
  29.             format(string, sizeof(string), "Vous venez de faire spawn un voiture( ID : %d) avec la couleur %d, %d .", modelid, vehcol1, vehcol2);
  30.             Scm(playerid, -1, string);
  31.         }
  32.         case _H@f<lock>: {
  33.  
  34.         }
  35.         case _H@f<ranger>: {
  36.  
  37.         }
  38.         case _H@f<spawn>: {
  39.  
  40.         }
  41.         case _H@f<reparer>: {
  42.  
  43.         }
  44.         case _H@f<forcerporte>: {
  45.  
  46.         }
  47.         case _H@f<fils>: {
  48.  
  49.         }
  50.     }
  51.  
  52.     return true;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement