Spawning vehicles with command makes the game stuck...
#6

Quote:
Originally Posted by DavidBilla
Посмотреть сообщение
Can you show your create vehicle code?
I changed the command actually. But still doesn't works.

Код:
// VEHICLE COMMAND
CMD:veh(playerid, params[])
{
     if(!strlen(params)) return SendClientMessage(playerid, red, "Error. Usage: /veh [modelid]");
     if(strval(params) > 611 || strval(params) < 400) return SendClientMessage(playerid, red, "Error. Models are between 400 and 611.");
     new Float:x, Float:y, Float:z;
     GetPlayerPos(playerid, x, y, z);
     PutPlayerInVehicle(playerid, CreateVehicle(strval(params), x, y, z, 0.0, -1, -1, -1), 0); 
     return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)