12.01.2016, 16:56
Hi, I want the player to be deleted when the tool was named Rhino. Can you help ?
I'm sorry for my bad English.
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; }