01.04.2012, 14:21
I am trying to exclude a specific class from entering vehicles (Zombies)
Is there any function for this, I cannot find one.
Thanks
Is there any function for this, I cannot find one.
Thanks
![Confused](images/smilies/confused.png)
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(/* is player zombie variable */)
ClearAnimations(playerid);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(/*IsPlayerZombie Variable*/)
{
new Float: Pos[4];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(playerid, Pos[0], Pos[1] + 2, Pos[2]);
}
}
return 1;
}