12.09.2009, 20:38
I got this :
And when i go into the Plane(Id 511) nothing happen... why? i dont see the GameTextForPlayer(playerid,"~w~Type /start For ~r~Pilot Mission",3000,5);
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if (newstate==PLAYER_STATE_DRIVER)
{
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 511 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 593)
{
if (GetPlayerSkin(playerid) == 61)
{
if (avisado[playerid]==-1)
{
GameTextForPlayer(playerid,"~w~Type /start For ~r~Pilot Mission",3000,5);//SetTimerEx("MandarMensaje",5500,0,"%d",playerid);
}
else
{
KillTimer(avisado[playerid]);
avisado[playerid]=-1;
}
}
}
}
if (newstate==PLAYER_STATE_ONFOOT)
{
if ((playerInMiniMission[playerid]>0)&&(avisado[playerid]==-1))
{
GameTextForPlayer(playerid,"TEXT HERE",3000,4);
avisado[playerid]=SetTimerEx("terminMission",10000,0,"%d",playerid);
}
}
return 1;
}