Rhino Delete
#1

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;
}
Reply


Messages In This Thread
Rhino Delete - by sampkinq - 12.01.2016, 16:56
Re: Rhino Delete - by ATGOggy - 12.01.2016, 17:00
Re: Rhino Delete - by FreAkeD - 12.01.2016, 17:02
Re: Rhino Delete - by sampkinq - 12.01.2016, 17:05
Re: Rhino Delete - by AbyssMorgan - 12.01.2016, 18:35

Forum Jump:


Users browsing this thread: 4 Guest(s)