Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:v(playerid, params[])
- {
- new intmodID[21 + 1];
- if(sscanf(params, "s[21]", intmodID))
- return ModeOfUse(playerid, "v", "[Modelo ID/Modelo Nombre]");
- if(!IsNumeric(intmodID)) format(intmodID, sizeof intmodID, "%s", xGetModelVehicle(intmodID));
- printf("v: %s", intmodID);
- if(!IsValidVehicleModel(strval(intmodID)))
- return SendClientMessage(playerid, COLOR_RED, "El modelo no existe o esta mal ingresado.");
- CreateVehicleREV(playerid, strval(intmodID), RandomVehicleColor(), RandomVehicleColor());
- new strTexto[90 + 1];
- format(strTexto, sizeof strTexto, ""ECOLOR_LIGHTBLUE"Ahora estás en un "ECOLOR_WHITE"%s[Modelo: %d].", GetVehicleName(GetPlayerVehicleID(playerid)), strval(intmodID));
- SendClientMessage(playerid, -1, strTexto);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement