Destroy vehicles - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Destroy vehicles (
/showthread.php?tid=209888)
Destroy vehicles -
xir - 11.01.2011
The script compiles fine when i am ingame nothing happends
code
pawn Код:
dcmd_vd(playerid, params[])
{
#pragma unused params
if(!PLVL[playerid]) return 0;
if(PlayerInfo[playerid][pAdminLevel] < 3)
{
if(IsPlayerInAnyVehicle(playerid))
{
DestroyVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid,Green,"Vehicle destroyed !");
}
else
{
SendClientMessage(playerid,Red,"You must be in the vehicle you want to destroy");
}
} else if(PlayerInfo[playerid][pAdminLevel] == 0) return 0;
return 1;
}
Re: Destroy vehicles -
_rAped - 11.01.2011
I can bet this one is wrong?
pawn Код:
if(PlayerInfo[playerid][pAdminLevel] < 3)
Re: Destroy vehicles -
alpha500delta - 11.01.2011
- Your not in a vehicle (lol)
- Above comment
- if(!PLVL[playerid]) return 0; (Are you PLVL or wth it is)
-
Re: Destroy vehicles -
xir - 11.01.2011
You're right, that one was wrong

Thank you so much _raped