Quote:
Originally Posted by Amunra
PHP код:
CMD:respawncars(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][Level] >= 10 || IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, green, "|- Your have Successfully Respawned all Vehicles! -|");
for(new v=0; v<MAX_VEHICLES; v++)
{
if(!IsVehicleOccupied(v))
{
SetVehicleToRespawn(v);
}
}
return 1;
}
else return SendClientMessage(playerid, COLOR_RED, "You need to be admin level 10 to use this cmd!");
}
Next add this
PHP код:
stock IsVehicleOccupied(vehicleid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInVehicle(i,vehicleid)) return 1;
}
return 0;
}
|
You're too stupid, or completely dumb.
Did you read what he asked for?
You're simply respawning vehicles which are not occupied, while he wanted to respawn only vehicles created by gamemode not filterscript.