Help me please - 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 me please (
/showthread.php?tid=89329)
Help me please -
pierhs - 01.08.2009
I want to add a cmd /removeveh so i can use it inside a vehicle and remove it from gamemode(IG of course)
Re: Help me please -
Criss_Angel - 01.08.2009
I';m not sure but try this:
pawn Код:
If(strcmp("/vehicleremove", cmdtext,true, 10) ==0)
{
If(IsPlayerInVehicle(playerid,vehicleid);
{
DestroyVehicle(Vehicleid);
}
return 1;
}
Re: Help me please -
saiberfun - 01.08.2009
Quote:
Originally Posted by Criss_Angel
I';m not sure but try this:
pawn Код:
If(strcmp("/vehicleremove", cmdtext,true, 10) ==0) { If(IsPlayerInVehicle(playerid,vehicleid); { DestroyVehicle(Vehicleid); } return 1; }
|
u don't have the vehicle id so u wanna destroy a vehicle?
pawn Код:
if(strcmp("/vehicleremove", cmdtext,true, 10) ==0)
{
new vid;
if(IsPlayerInAnyVehicle(playerid));
{
SendClientMessage(playerid,0xFB0000FF,"You destroyed the vehicle you have been in");
vid = GetPlayerVehicleID(playerid);
RemovePlayerFromVehicle(playerid);
DestroyVehicle(vid);
}
return 1;
}