SA-MP Forums Archive
Rhino Delete - 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)
+--- Thread: Rhino Delete (/showthread.php?tid=598431)



Rhino Delete - sampkinq - 12.01.2016

Hi, I want the player to be deleted when the tool was named Rhino. Can you help ?
I'm sorry for my bad English.

- The problem is solved.
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
new modelid = GetVehicleModel(vehicleid);
if(modelid == 432) //rhino
{
DestroyVehicle(vehicleid);
}
}
return 1;
}



Re: Rhino Delete - ATGOggy - 12.01.2016

I can't understand what you mean


Re: Rhino Delete - FreAkeD - 12.01.2016

Try https://sampwiki.blast.hk/wiki/RemovePlayerFromVehicle


Re: Rhino Delete - sampkinq - 12.01.2016

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
I can't understand what you mean
I wants to destroy the Rhino.


Re: Rhino Delete - AbyssMorgan - 12.01.2016

why you create Rhino lol