Spedo - Cmd [Rep+]
#3

Quote:
Originally Posted by Gamer_007
Посмотреть сообщение
Plz any mod move this topic to Script Request
Mods will do what they feel is correct. You do not have to post it.
OT - Code for respawning all unused cars
1.paste this stock out of any callback
PHP код:
stock IsVehicleOccupied(vehicleid// Returns 1 if there is anyone in the vehicle
{
    for(new 
i=0;i<MAX_PLAYERS;i++;)
    {
        if(
IsPlayerInAnyVehicle(i))
        {
            if(
GetPlayerVehicleID(i)==vehicleid)
            {
                return 
1;
            }
            else
            {
                return 
0;
            }
        }
    }
return 
1;

2. Heres the command(in ZCMD)
PHP код:
CMD:respawncars(playeridparams[])
{
    for(new 
i=0i<MAX_VEHICLESi++)
    {
        if(!
IsVehicleOccupied(i))
        {
            
DestroyVehicle(i);
        }
    }
    return 
1;

You must have basic knowledge of what stocks are and where to put them


For the speedometer.
Click Here
Reply


Messages In This Thread
Spedo - Cmd [Rep+] - by virusa1 - 21.10.2012, 18:47
Re: Spedo - Cmd [Rep+] - by Gamer_007 - 22.10.2012, 03:04
Re: Spedo - Cmd [Rep+] - by [HK]Ryder[AN] - 22.10.2012, 03:18

Forum Jump:


Users browsing this thread: 1 Guest(s)