/vrespawn help
#5

pawn Код:
CMD:resetv(playerid, params[])
{
        SendClientMessage(playerid, 0xFFFF00AA, "|- Your have Successfully Respawned all Vehicles!");
        GameTextForAll("~n~~n~~n~~n~~n~~n~~r~Vehicles ~g~Respawned!", 3000,3);
        for(new cars=0; cars<MAX_VEHICLES; cars++)
           {
               if(!VehicleOccupied(cars))
               {
                   SetVehicleToRespawn(cars);
               }
           }
        SendClientMessage(playerid, 0xFFFF00AA, "All vehicles has been respawned, Please do not abuse this command unless all agrees to respawn.");
    }
    return 1;
}
And this somewhere in ya script:-

pawn Код:
public VehicleOccupied(vehicleid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInVehicle(i,vehicleid)) return 1;
}
return 0;
}
Reply


Messages In This Thread
/vrespawn help - by tanush - 20.03.2011, 17:56
Re: /vrespawn help - by iJumbo - 20.03.2011, 18:04
Re: /vrespawn help - by tanush - 20.03.2011, 18:27
Re: /vrespawn help - by Biesmen - 20.03.2011, 19:08
Re: /vrespawn help - by Davz*|*Criss - 20.03.2011, 20:18
Re: /vrespawn help - by [ProX]BlueFire - 20.03.2011, 20:20
Re: /vrespawn help - by tanush - 20.03.2011, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)