/destroycar
#1

i know there is a /destroycar...but you have to be in the car for it to be gone...is there a command where say your specing a player it will destroy the car there in while you spec them?
Reply
#2

Add below /spectate

pawn Код:
if(IsPlayerInAnyVehicle(targetid))
{
    new tvid = GetPlayerVehicleID(targetid);
    DestroyVehicle(tvid);
}
Reply
#3

hhmm wouldnt you have to integrate that with /destroycar to get it to work?
Reply
#4

Quote:
Originally Posted by dannydarth
Посмотреть сообщение
hhmm wouldnt you have to integrate that with /destroycar to get it to work?
Claude's code (integrated into your spectating command) would destroy the vehicle, with the specific targetid variable (which you might need to change).

I've changed the code (seeing as Claude was time and created a variable for it):

pawn Код:
if(IsPlayerInAnyVehicle(targetid))
{
    DestroyVehicle(GetPlayerVehicleID(targetid));
}
Reply
#5

so when i spec the person it will destroy his car automatically
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)