01.06.2011, 01:04
As you can see I dont have the required score.
![](http://i52.tinypic.com/2mmweoy.png)
Yet im flying the vehilce just fine:
![](http://i55.tinypic.com/24g5e7c.png)
The filterscript is loaded.
![](http://i52.tinypic.com/x0nybs.png)
And this is the full script:
![](http://i52.tinypic.com/2mmweoy.png)
Yet im flying the vehilce just fine:
![](http://i55.tinypic.com/24g5e7c.png)
The filterscript is loaded.
![](http://i52.tinypic.com/x0nybs.png)
And this is the full script:
pawn Код:
#include <a_samp>
#include <a_colors>
#include <JunkBuster>
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if( oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER )
{
//20 Score Aircraft
if( (GetPlayerScore(playerid) < 20) && IsPlayerInVehicle(playerid, 519) )
{
SendClientMessage(playerid, COLOR_RED, "You need 20 flying minutes (20 Score) to use the Shamal!");
RemovePlayerFromVehicle(playerid);
}
else if( (GetPlayerScore(playerid) < 20) && IsPlayerInVehicle(playerid, 563) )
{
SendClientMessage(playerid, COLOR_RED, "You need 20 flying minutes (20 Score) to use the Raindance!");
RemovePlayerFromVehicle(playerid);
}
else if( (GetPlayerScore(playerid) < 20) && IsPlayerInVehicle(playerid, 548) )
{
SendClientMessage(playerid, COLOR_RED, "You need 20 flying minutes (20 Score) to use the Cargobob!");
RemovePlayerFromVehicle(playerid);
}
//40 Score Aircraft
else if( (GetPlayerScore(playerid) < 40) && IsPlayerInVehicle(playerid, 577) )
{
SendClientMessage(playerid, COLOR_RED, "You need 40 flying minutes (40 Score) to use the AT-400!");
RemovePlayerFromVehicle(playerid);
}
else if( (GetPlayerScore(playerid) < 40) && IsPlayerInVehicle(playerid, 592) )
{
SendClientMessage(playerid, COLOR_RED, "You need 40 flying minutes (40 Score) to use the Andromada!");
RemovePlayerFromVehicle(playerid);
}
else if( (GetPlayerScore(playerid) < 40) && IsPlayerInVehicle(playerid, 417) )
{
SendClientMessage(playerid, COLOR_RED, "You need 40 flying minutes (40 Score) to use the Leviathan!");
RemovePlayerFromVehicle(playerid);
}
//60 Score Aircraft
else if( (GetPlayerScore(playerid) < 60) && IsPlayerInVehicle(playerid, 520) )
{
SendClientMessage(playerid, COLOR_RED, "You need 60 flying minutes (60 Score) to use the Hydra!");
RemovePlayerFromVehicle(playerid);
}
else if( (GetPlayerScore(playerid) < 60) && IsPlayerInVehicle(playerid, 592) )
{
SendClientMessage(playerid, COLOR_RED, "You need 60 flying minutes (60 Score) to use the Rustler!");
RemovePlayerFromVehicle(playerid);
}
else if( (GetPlayerScore(playerid) < 60) && IsPlayerInVehicle(playerid, 425) )
{
SendClientMessage(playerid, COLOR_RED, "You need 60 flying minutes (60 Score) to use the Hunter!");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}