new VeiculoInfo[MAX_PLAYERS];
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);
}
else
{
DeletePlayer3DTextLabel(playerid,VeiculoInfo[playerid]);
}
return true;
}
new Text3D:VeiculoInfo[MAX_PLAYERS];
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;
}
new PlayerText3D:VeiculoInfo[MAX_PLAYERS];
Attach3DTextLabelToVehicle( VeiculoInfo[playerid], GetPlayerVehicleId(playerid), 0.0, 0.0, 2.0);
Attach3DTextLabelToVehicle( VeiculoInfo[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 2.0);
Tem um pequeno errinho aqui
pawn Код:
pawn Код:
|
Tem um pequeno errinho aqui
pawn Код:
pawn Код:
|
Attach3DTextLabelToVehicle(VeiculoInfo[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 0.9);
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;
}