22.11.2012, 14:10
pawn Код:
public OnPlayerUpdate(playerid)
{
new Text3D:text; // variables
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
if(Boost[playerid] == 1)
{
text = Create3DTextLabel( "{00FF00}Boost:Online", 0xFF0000AA, 0.0, 0.0,0.0, 50.0, 0, 1 ); // Create3D
Attach3DTextLabelToVehicle( text, vehicleid, 0.0, 0.0, 0.7);// Attach3D
Update3DTextLabelText(text, 0xFFFFFFFF, "{00FF00}Boost:Online");
}
else
{
text = Create3DTextLabel( "{00FF00}Boost:{FF0000}Offline", 0xFF0000AA, 0.0, 0.0,0.0, 50.0, 0, 1 ); // Create3D
Attach3DTextLabelToVehicle( text, vehicleid, 0.0, 0.0, 0.7);// Attach3D
Update3DTextLabelText(text, 0xFFFFFFFF, "{00FF00}Boost:{FF0000}Offline");
}
}
else
{
Delete3DTextLabel(text); //here
}
return 1;
}