10/11/2022 17:06
Código:
CMD:veh(playerid, params[]) {
new modelid;
if (sscanf(params, "k<vehicle>", modelid)) {
return SendClientMessage(playerid, -1, "/veh [ID ou nome do modelo]");
}
if (modelid == -1) {
return SendClientMessage(playerid, -1, "Modelo inválido.");
}
new Float: x,
Float: y,
Float: z,
Float: ang;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, ang);
PutPlayerInVehicle(playerid, CreateVehicle(modelid, x, y, z, ang, -1, -1, cellmin), 0);
return 1;
}