17.06.2011, 09:53
* Fixed
Uses ZCMD, might be a bad way of doing it, but its short and sweet.
Also for future note, this is NOT a request board.
Didn't know SetVehicleToRespawn existed.
Uses ZCMD, might be a bad way of doing it, but its short and sweet.
Also for future note, this is NOT a request board.
pawn Код:
CMD:respawncars(playerid, params[])
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(IsVehTaken(i) == 0)
{
SetVehicleToRespawn(i)
}
}
}
stock IsVehTaken(vid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(vid == GetPlayerVehicleID(i))
{
return 1;
}
}
return 0;
}