04.05.2012, 03:42
pawn Код:
new Text3D:VeiculoInfo[MAX_PLAYERS]; // Coloque Text3D para definir que й TextLabel
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
VeiculoInfo[playerid] = CreatePlayer3DTextLabel(playerid,"Pres. Kennedy =(",-1,0,0,0.9,10.0,INVALID_PLAYER_ID,GetPlayerVehicleID(playerid),1);
Attach3DTextLabelToVehicle( VeiculoInfo[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 2.0);
}
else
{
DeletePlayer3DTextLabel(playerid,VeiculoInfo[playerid]);
}
return true;
}