08.01.2011, 16:46
Hi, how to check passengers variable (spec == 7) in OnPlayerstateChange? I tryed something like that..
pawn Code:
if(model == 545)
{
if(spec == 7)
{
if (playerState == PLAYER_STATE_PASSENGER || playerState == PLAYER_STATE_DRIVER)
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInAnyVehicle(i))
{
return 1;
}
return 1;
}