26.10.2014, 16:14
Hey guys,
Sorry if this is in the wrong topic.. but How do you create a vehicle spawn command for ZCMD?
Sorry if this is in the wrong topic.. but How do you create a vehicle spawn command for ZCMD?
CMD:veh(playerid, params[] )
{
new
modelid,
Float:zPos[3];
if( sscanf(params, "i", modelid)) SendClientMessage(playerid, -1, "Command USAGE: /veh [id]" );
else
{
GetPlayerPos(playerid, zPos[0], zPos[1], zPos[2]);
CreateVehicle(modelid, zPos[0], zPos[1], zPos[2], 0, 1, 1, 80000);
}
return 1;
}