Advertisement
Guest User

Untitled

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