Jump to content
  • 0

Cum pot pune /stats pe Dialog?


Question

Posted

Am cele necesare doar ca nu stiu cum la o comanda gen [pawn]/stats[/pawn] Sa apara textul in Dialogbox....Adica nu stiu cum sa fac ca atunci cand scrii /stats sati apara un dialogbox

3 answers to this question

Recommended Posts

Posted

Comanda:

[pawn] if (strcmp(cmd, "/stats", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

if (gPlayerLogged[playerid] != 0)

{

ShowStats(playerid,playerid);

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "  Nu esti logat!");

}

}

return 1;

}[/pawn]

Si stringurile:

[pawn]new coordsstring[256];

format(coordsstring, sizeof(coordsstring),"____________________| %s |____________________",name);

SendClientMessage(playerid, COLOR_GREEN,coordsstring);

format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Phone:[%d] Donator:[%s] Gold:[%d] Costlevel:[%d]", level,atext,age,pnumber,drank,gold,costlevel);

SendClientMessage(playerid, COLOR_GRAD1,coordsstring);

format(coordsstring, sizeof(coordsstring), "Played hours:[%d] Record-Fish:[%d] Arests:[%d] Job:[%s] Respect:[%d/%d] Charity:[%d/%d]", ptime,bigfish,arrests,jtext,exp,expamount);

SendClientMessage(playerid, COLOR_GRAD3,coordsstring);

format(coordsstring, sizeof(coordsstring), "Cann/Coca:[%d/%d] Mats:[%d] Team:[%s] Organization:[%s] Grade:[%s] Accent[%s]",drugs,drugs2,mats,ttext,ftext,rtext,PlayerInfo[playerid][pAccent]);

SendClientMessage(playerid, COLOR_GRAD5,coordsstring);

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

{

format(coordsstring, sizeof(coordsstring), "House:[%d] Biz:[%d] Int:[%d] VirtualWorld:[%d/%d] Location:[%d] Bani:[ %d $ + %d $ = %d $]", housekey,bizkey,intir,virworld,virworld2,local,money1,money2,totalsold);

SendClientMessage(playerid, COLOR_GRAD6,coordsstring);

}

SendClientMessage(playerid, COLOR_GREEN,"___________________________________________________________");

}

}[/pawn]

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.