Jump to content
  • 0

Problema aod si hod


GiGiMuScHi

Question

Deci vreau sa pun niste chestii cand scrii aod sau hod sa iti apara o img pe spate, ca in aceasta poza:

LA AOD:

sa_mp_001.png

SI la HOD:

[img width=500 height=320]http://s11.postimage.org/6ga4ej0j7/sa_mp_004.png

Am adaugat OnFilterScriptInit() astea:

tes3 = CreateObject(19326,0,0,0,0,0,0);

tes4 = CreateObject(19326,0,0,0,0,0,0);

tes = CreateObject(19326,0,0,0,0,0,0);

tes2 = CreateObject(19326,0,0,0,0,0,0);

    SetObjectMaterialText(tes, "{FFFFFF}({00FFEE}*{6EF83C}{F81414}_{00FFEE}*{FFFFFF})", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 20,1, -16776961, 0,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

    SetObjectMaterialText(tes2, " {F81414}Admin\n {00FFEE}Pandora", 0, OBJECT_MATERIAL_SIZE_256x128, "Gabriola", 25, 1, -16776961, 0,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

    SetObjectMaterialText(tes3, "{FFFFFF}({00FFEE}*{6EF83C}{F81414}_{00FFEE}*{FFFFFF})", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 20,1, -16776961, 0,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

    SetObjectMaterialText(tes4, " {FFAF00}Helper\n {00FFEE}Pandora", 0, OBJECT_MATERIAL_SIZE_256x128, "Gabriola", 25, 1, -16776961, 0,OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

Si uite si comenzile:

Aod:

if(strcmp(cmd, "/aduty", true) == 0 || strcmp(cmd, "/aod", true) == 0)

{

        if(PlayerInfo[playerid][pAdminServer] >=1)

{

if(adminafk[playerid] == 1)

{

  SendClientMessage(playerid,COLOR_2RED, "Nu ai voie sa te pui ON Duty daca esti AFK.Scrie /aafk intai.");

  return 0;

}

if(admind[playerid] == 0)

            {

GetPlayerName(playerid, sendername, sizeof(sendername));

            new string2[256];

admind[playerid] = 1;

AttachObjectToPlayer(tes, playerid, 0.000000, -0.120000, 0.40000, 0.000000, 0.00000, 0.000000);

AttachObjectToPlayer(tes2, playerid, 0.000000, -0.125000, 0.100000, 0.00000, 0.00000, 0.00000);

format(string2,sizeof(string2), "AdmWarning: %s Este Acuma La Datorie.Scrie /w sau /report Daca Ai Nevoie De Ajutor", sendername);

ABroadCast(COLOR_YELLOW,string2,1);

}

else

{

GetPlayerName(playerid, sendername, sizeof(sendername));

            new string3[256];

            admind[playerid] = 0;

            DestroyObject(tes);

DestroyObject(tes2);

          format(string3,sizeof(string3), "AdmWarning: %s Nu Mai Este La Datorie ca admin.", sendername);

ABroadCast(COLOR_YELLOW,string3,1);

}

}

return 1;

}

Si la hod :

if(strcmp(cmd, "/hduty", true) == 0 || strcmp(cmd, "/hod", true) == 0)

{

        if(PlayerInfo[playerid][pHelperLevel] >=1)

{

if(helper[playerid] == 0)

            {

GetPlayerName(playerid, sendername, sizeof(sendername));

            new string2[256];

helper[playerid] = 1;

AttachObjectToPlayer(tes3, playerid, 0.000000, -0.120000, 0.40000, 0.000000, 0.00000, 0.000000);

AttachObjectToPlayer(tes4,playerid, 0.000000, -0.125000, 0.100000, 0.00000, 0.00000, 0.00000);

format(string2,sizeof(string2), "HlpWarning: %s Este Acuma La Datorie.Scrie /needhelp Daca Ai Nevoie De Ajutor", sendername);

ABroadCast(COLOR_YELLOW,string2,1);

}

else

{

GetPlayerName(playerid, sendername, sizeof(sendername));

            new string3[256];

            helper[playerid] = 0;

            DestroyObject(tes3);

DestroyObject(tes4);

          format(string3,sizeof(string3), "HlpWarning: %s Nu Mai Este La Datorie ca helper.", sendername);

ABroadCast(COLOR_YELLOW,string3,1);

}

}

return 1;

}

Cand scriu /aod sau /hod nu imi apare img alea in spate.

Ce am gresit de nu arata, ca de dat erori nu imi da se compileaza perfect.

Respecta Si Vei Fi Respectat !!!

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.