05.09.2013, 16:41
I don't follow you anymore...but if you want the vehicles to be set to respawn:
Note that the function IsValidVehicle must be declared native:
pawn Код:
if(!strcmp(cmdtext,"respawnallvehicles"))
{
for(new i = 1; i < MAX_VEHICLES; i++)
{
if(IsValidVehicle(i))
{
SetVehicleToRespawn(i);
}
}
return 1;
}
Note that the function IsValidVehicle must be declared native:
pawn Код:
native IsValidVehicle(vehicleid);