19.09.2017, 12:48
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;
}