Advertisement
reyeshn

PROBLEM: CMD V

Aug 16th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.75 KB | None | 0 0
  1. CMD:v(playerid, params[])
  2. {
  3.     new intmodID[21 + 1];
  4.     if(sscanf(params, "s[21]", intmodID))
  5.         return ModeOfUse(playerid, "v", "[Modelo ID/Modelo Nombre]");
  6.     if(!IsNumeric(intmodID)) format(intmodID, sizeof intmodID, "%s", xGetModelVehicle(intmodID));
  7.     printf("v: %s", intmodID);
  8.     if(!IsValidVehicleModel(strval(intmodID)))
  9.         return SendClientMessage(playerid, COLOR_RED, "El modelo no existe o esta mal ingresado.");
  10.     CreateVehicleREV(playerid, strval(intmodID), RandomVehicleColor(), RandomVehicleColor());
  11.     new strTexto[90 + 1];
  12.     format(strTexto, sizeof strTexto, ""ECOLOR_LIGHTBLUE"Ahora estás en un "ECOLOR_WHITE"%s[Modelo: %d].", GetVehicleName(GetPlayerVehicleID(playerid)), strval(intmodID));
  13.     SendClientMessage(playerid, -1, strTexto);
  14.     return true;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement