[HELP] DeleteCar Command - 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: [HELP] DeleteCar Command (
/showthread.php?tid=91312)
[HELP] DeleteCar Command -
Smiths - 14.08.2009
I' m trying to make a DeleteCar command but it doesn't work.... can some one
post me the commands codes please!
Re: [HELP] DeleteCar Command -
Kodman262 - 14.08.2009
Here, i use this in my server it works great!
pawn Код:
if(strcmp(cmdtext, "/delcar", true, 5) == 0) {
if(PlayerData[playerid][AdminLevel] >= 3)
if(IsPlayerInAnyVehicle(playerid))
{
DestroyVehicle(GetPlayerVehicleID(playerid));
}
else
{
SendClientMessage(playerid,COLOR_RED,"[Server] Must Be In A Car!");
}
return 1;
}
Re: [HELP] DeleteCar Command -
Smiths - 14.08.2009
Working great! thank you!
Re: [HELP] DeleteCar Command -
Kodman262 - 14.08.2009
No Problem! Good Luck!