Caiotesio

adasdasd

Jan 17th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. CMD:cc(playerid, params[])
  2. {
  3. new
  4. Carro,
  5. Cor1,
  6. Cor2;
  7. if(!PlayerDados[playerid][Vip]) return SendClientMessage(playerid, BRANCO, "Você precisa ser Vip para usar este comando!");
  8. if(sscanf(params, "iii", Carro, Cor1, Cor2)) return SendClientMessage(playerid, CINZA, "[SSBR] Use /cc [ID] [cor1] [cor2]"), SendClientMessage(playerid, CINZA, "Use o comando para criar um veiculo VIP.");
  9. new Float:X,
  10. Float:Y,
  11. Float:X1,
  12. Float:Y1,
  13. Float:Z,
  14. Float:A;
  15. PosicaoFrentePlayer(playerid, X, Y, 3);
  16. GetPlayerPos(playerid, X1, Y1, Z);
  17. GetPlayerFacingAngle(playerid, A);
  18. DestroyVehicle(CarroDono[playerid]);
  19. CarroDono[playerid] = CreateVehicle(Carro, X, Y, Z, A+90, Cor1, Cor2, 15);
  20. format(String, sizeof(String), "Carro VIP de {FFFF00}%s", Nome(playerid));
  21. DonoCarro[playerid] = Create3DTextLabel(String, VERDE_CLARO, X, Y, Z+1, 30, 0, 1);
  22. Attach3DTextLabelToVehicle(DonoCarro[playerid], CarroDono[playerid], 0, 0, 0);
  23. PutPlayerInVehicle(playerid, CarroDono[playerid], 0);
  24. return 1;
  25. }
  26. #endif
Advertisement
Add Comment
Please, Sign In to add comment