delcars
#1

is possible make filterscript when u write /delcars all cars have been deleted ? or spawn cars wanis for some time when they havent driver ?
Reply
#2

It's possible. FOr delete cars use loop to scroll through all cars.
PHP код:
#include <a_samp>
public OnPlayerCommandText(playerid,cmdtext[])
{
    if(
strcmp("/delcars",cmdtext,true) == 0)
    {
        if(
IsPlayerAdmin(playerid))
        {
            
SendClientMessage(playerid,0xFF0000FF,"You have deleted all cars on server!");
            for(new 
i;i<MAX_VEHICLES;i++)
            
DestroyVehicle(i);
            return 
1;
        }
        return 
1;
    }
    return 
0;

This should work
Reply
#3

is possible make respawn of static cars ? i can give u xyz of them
Reply
#4

PHP код:
OnPlayerStateChange
{
if(
PLAYER_STATE_DRIVER) return 1;
if(!
PLAYER_STATE_DRIVER
{
new 
Veh;
Veh=GetPlayerVehicleID(playerid);
DestroyVehicle(Veh);
return 
1;
}
return 
1;

When a player exiting from its vehicle delete his car!

is not what u have requested, but I can do only this ...
Reply
#5

it is good but i dont know how write it to pawno ita say me lots of errors
Reply
#6

Add [ISS]Daniele_Tom's script under
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)