destroycar cmd?
#1

How do I make a destroy car cmd but that only destroys cars that were spawned by hackers / admins

not server sided cars.
Reply
#2

you mean somthing like this?
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER)
    {
    new vid = GetPlayerVehicleID(playerid);
    SetTimerEx("destroy", 15000, false, "d", vid);
    }
    return 1;
}

forward destroy(vid);
public destroy(vid)
{
    DestroyVehicle(vid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)