Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <YSI\y_stringhash>
- #define Scm SendClientMessage
- CMD:v(playerid, params[]) {
- new
- option[16],
- suboptions[129];
- if(sscanf(params, "s[16]S(0)[129]", option, suboptions)) return Scm(playerid, -1, "Vehicule : lock ; ranger ; spawn ; reparer ; forcerporte ; fils");
- switch(YHash(cmd, true, fnv1)) {
- case _H@f<creer>: {
- new
- modelid,
- vehcol1,
- vehcol2,
- trespawn;
- 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]");
- new
- Float:vx,
- Float:vy,
- Float:vz,
- Float:vangle;
- GetPlayerPos(playerid, vx, vy, vz);
- GetPlayerFacingAngle(playerid, vangle);
- CreateVehicleEx(modelid, vx, vy, vz, vangle, vehcol1, vehcol2, trespawn, bot, GetPlayerVirtualWorld(playerid));
- SaveVehicle(playerid);
- format(string, sizeof(string), "Vous venez de faire spawn un voiture( ID : %d) avec la couleur %d, %d .", modelid, vehcol1, vehcol2);
- Scm(playerid, -1, string);
- }
- case _H@f<lock>: {
- }
- case _H@f<ranger>: {
- }
- case _H@f<spawn>: {
- }
- case _H@f<reparer>: {
- }
- case _H@f<forcerporte>: {
- }
- case _H@f<fils>: {
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement