Destroy Vehicle Command help
#2

Dont use dcmd its lagging old shit. Use Pawn.CMD for fastest speed around here.
PHP код:
cmd:dv(pid,p[]){ 
    if(!
IsPlayerAdmin(pid) && !PlayerInfo[pid][pAdminLevel])return scm(pid,-1,"Not admin!");
    new 
vid;
    if(
sscanf(p,"d",vid))return scm(pid,-1,"/dv [VID]");
    if(!
IsValidVehicle(vid))return scm(pid,-1,"Vehicle with scuh ID doesn't exsist!");
    foreach(
Player,i)if(GetPlayerVehicleID(i)==vid)return scm(pid,-1,"Somebody is in the vehicle!");
    
DestroyVehicle(vid);
    
scm(pid,-1,"Vehicle destroyed.");
    return 
1

Reply


Messages In This Thread
Destroy Vehicle Command help - by DarknesS1988 - 19.09.2017, 12:38
Re: Destroy Vehicle Command help - by CodeStyle175 - 19.09.2017, 12:48
Re: Destroy Vehicle Command help - by DarknesS1988 - 19.09.2017, 12:51

Forum Jump:


Users browsing this thread: 2 Guest(s)