Advertisement
RodneyFrancalim

Comando /veh

Sep 2nd, 2014
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.64 KB | None | 0 0
  1. // (/veh) - Cria um veículo temporário (até o servidor desligar ou reiniciar)
  2. CMD:veh(playerid, params[])
  3. {
  4.     if(PodeUsarComando(playerid))
  5.     {
  6.  
  7.     new
  8.         vehM,
  9.         vehC1,
  10.         vehC2,
  11.         Float:pC[ 4 ]
  12.     ;
  13.  
  14.     if(PlayerInfo[playerid][pAdmin] <= 1) return OnPlayerCommandPerformed(playerid, "/ctv", false);
  15.     if(sscanf(params, "ddd", vehM, vehC1, vehC2 )) return SCM(playerid, " "COR_INFO"* "COR_PADRAO"USE: /ctempveiculo [MODELO] [COR1] [CO2]");
  16.  
  17.     GetPlayerPos( playerid, pC[ 0 ], pC[ 1 ], pC[ 2 ]);
  18.     GetPlayerFacingAngle( playerid, pC[ 3 ]);
  19.     CreateVehicle( vehM, pC[ 0 ], pC[ 1 ], pC[ 2 ], pC[ 3 ], vehC1, vehC2, -1 );
  20.     }
  21.  
  22.     return 1;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement