03.01.2010, 23:27
Use this.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate==PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 592)
{
if(GetPlayerScore(playerid) >= 500)
{
SendClientMessage(playerid, COLOR_YELLOW,"Welcome To Andromanda!");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW,"You Need Atleast 500 Score To Enter Andromanda!");
new string[128];
format(string, sizeof(string), "Your Flight Score is: %i",GetPlayerScore(playerid));
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
}
}
return 1;
}