3D Text.
#1

Hello, im have with a freaking 3D Text ( attaching ). So, im tryied to attach it, when player join some team. Example:

pawn Код:
SetPlayerToTeamColour(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
    new Vardaz[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Vardaz,sizeof(Vardaz));
    new mess[65];
    if(ZaidejoKomanda[playerid] == Yakuza)
    {
        SetPlayerColor(playerid,ySpalva);
        for(new i=0; i<MAX_PLAYERS; i++) SetPlayerMarkerForPlayer( i, playerid, ( GetPlayerColor( playerid ) & ySpalva ) );
        NustatytiGyvybes(playerid, 100);
        NustatytiLygi(playerid, WEAPONSKILL_DESERT_EAGLE, 0);
        NustatytiLygi(playerid, WEAPONSKILL_MP5, 0);
        NustatytiLygi(playerid, WEAPONSKILL_AK47, 0);
        NustatytiLygi(playerid, WEAPONSKILL_SHOTGUN, 0);
        format(mess,sizeof(mess),"GangWars: %s бstojo б Yakuza komandа",Vardaz);
        NusiustiZinuteVisiems(MELYNA,mess);
        SetPlayerTeam(playerid,Yakuza);
        [B]Nustatyti3DTeksta(playerid);[/B]
    }
/// other teams
and Nustatyti3D teksta function:

pawn Код:
stock Nustatyti3DTeksta(playerid)
{
new Float:vX, Float:vY, Float:vZ;
GetPlayerPos(playerid, vX, vY, vZ);
if(ZaidejoInformacija[playerid][Administratorius] > 0)
{
NustatytiGyvybes(playerid, 100);
NustatytiSarvus(playerid, 99);
NustatytiLygi(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 3);
NustatytiLygi(playerid, WEAPONSKILL_DESERT_EAGLE, 3);
NustatytiLygi(playerid, WEAPONSKILL_MP5, 3);
NustatytiLygi(playerid, WEAPONSKILL_M4, 3);
NustatytiLygi(playerid, WEAPONSKILL_SNIPERRIFLE, 3);
AdminL[playerid] = Sukurti3D("Administratorius",MELYNA,vX, vY, vZ+2.0,20.0,1);
Attach3DTextLabelToPlayer(AdminL[playerid],playerid,0,0,1.6);
}
if(ZaidejoInformacija[playerid][Remejas] > 0)
{
DuotiGinkla(playerid, 16, 3);
NustatytiGyvybes(playerid, 110);
NustatytiSarvus(playerid, 99);
DonatorL[playerid] = Sukurti3D("Remлjas",PILKA,vX, vY, vZ+2.0,20.0,1);
Attach3DTextLabelToPlayer(DonatorL[playerid],playerid,0,0,2.0);
}
if(ZaidejoInformacija[playerid][Surakintas] == 1)
{
NustatytiBusena(playerid, false);
SukurtiDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "Jыs esate surakintas.", "Gerai", "Uюdaryti");
}
if(ZaidejoInformacija[playerid][VIP] > 0)
{
NustatytiLygi(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 3);
NustatytiLygi(playerid, WEAPONSKILL_DESERT_EAGLE, 3);
NustatytiLygi(playerid, WEAPONSKILL_MP5, 3);
NustatytiLygi(playerid, WEAPONSKILL_M4, 3);
NustatytiLygi(playerid, WEAPONSKILL_SNIPERRIFLE, 3);
VipL[playerid] = Sukurti3D("VIP",RAUDONA,vX, vY, vZ+2.0,20.0,1);
Attach3DTextLabelToPlayer(VipL[playerid],playerid,0,0,1.4);
}
if(ZaidejoKomanda[playerid] == Yakuza)
{
YakuzaL[playerid] = Sukurti3D("Yakuza",ySpalva,vX, vY, vZ+2.0,20.0,1);
Attach3DTextLabelToPlayer(YakuzaL[playerid],playerid,0,0,1.2);
new Random = random(4);
NustatytiPozicija(playerid, YakuzaSP[Random][0], YakuzaSP[Random][1], YakuzaSP[Random][2]);
SetPlayerFacingAngle(playerid, YakuzaSP[Random][3]);}
if(ZaidejoKomanda[playerid] == Triads)
{
TriadsL[playerid] = Sukurti3D("Triads",tSpalva,vX, vY, vZ+2.0,20.0,1);
Attach3DTextLabelToPlayer(TriadsL[playerid],playerid,0,0,1.2);
new Random1 = random(4);
NustatytiPozicija(playerid, TriadsSP[Random1][0], TriadsSP[Random1][1], TriadsSP[Random1][2]);
SetPlayerFacingAngle(playerid, TriadsSP[Random1][3]);}
if(ZaidejoKomanda[playerid] == Nostra)
{
NostraL[playerid] = Sukurti3D("La Cosa Nostra",lSpalva,vX, vY, vZ+2.0,20.0,1);
Attach3DTextLabelToPlayer(NostraL[playerid],playerid,0,0,1.2);
new Random2 = random(4);
NustatytiPozicija(playerid, NostraSP[Random2][0], NostraSP[Random2][1], NostraSP[Random2][2]);
SetPlayerFacingAngle(playerid, NostraSP[Random2][3]);}
if(ZaidejoKomanda[playerid] == Policija)
{
PolicijaL[playerid] = Sukurti3D("Policijos Pareigunas",mSpalva,vX, vY, vZ+2.0,20.0,1);
Attach3DTextLabelToPlayer(PolicijaL[playerid],playerid,0,0,1.2);
new Random3 = random(4);
NustatytiPozicija(playerid, PolicijaSP[Random3][0], PolicijaSP[Random3][1], PolicijaSP[Random3][2]);
SetPlayerFacingAngle(playerid, PolicijaSP[Random3][3]);
}
return 1;
}
but sometimes, 3d Text works perfectly, and sometines just no attaching, no text.
Reply
#2

BUMP. +8chars;d
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)