10.12.2011, 00:38
pawn Код:
public OnPlayerStateChange( playerid, newstate, oldstate)
{
if ( newstate == PLAYER_STATE_DRIVER)
{
new vid = GetPlayerVehicleID( playerid) ;
if ( vid==Alqaedacars[0]||vid==Alqaedacars[1]||vid==Alqaedacars[2]||vid==Alqaedacars[3]||vid==Alqaedacars[4]||vid==Alqaedacars[5]||vid==Alqaedacars[6]||vid==Alqaedacars[7]||vid==Alqaedacars[8]||vid==Alqaedacars[9])
{
if(PlayerInfo[playerid][pMember] != 22||PlayerInfo[playerid][pLeader] != 22) { }
else
{
SendClientMessage ( playerid , COLOR_RED , "{FF3D3D}[Erro]{FFFFFF} Vocк nгo й da Alqaeda.");
RemovePlayerFromVehicle( playerid) ;
TogglePlayerControllable( playerid, 1) ;
}
}
}
return 1;
}