Spedo - Cmd [Rep+]
#1

Hello all!

I need a speedometer and cmd witch respawn all unused cars.

thanx!
Reply
#2

Plz any mod move this topic to Script Request
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)