10.10.2011, 14:51
pawn Код:
// OnPlayerStateChange
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if( newstate == PLAYER_STATE_DRIVER )
{
for( new i = 0; i < sizeof polizeiauto; i++ )
{
if( GetPlayerVehicleID( playerid ) == polizeiauto[ i ] )
{
if
(
Spieler[playerid][team] != TEAM_POLIZEI || Spieler[playerid][leader] != TEAM_POLIZEI ||
Spieler[playerid][team] != TEAM_FBI || Spieler[playerid][leader] != TEAM_FBI
)
{
RemovePlayerFromVehicle( playerid );
SendClientMessage( playerid, COLOR_LIGHTRED, "Du hast keine Schlьssel fьr dieses Fahrzeug.");
}
}
}
}
return 1;
}