[Pomoc]Draw

Započeo caupton, Jun 05, 2011, 21:52:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:FG Edit
Detaljan opis problema:Kako da stavim ovo u dialog kada igrac stisne TAB I stisne misom na nekom igraca da mu se pojavi dialog sa ovim Dole pise u Code!
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
PS.HVALA PUNO ONOME KO POMOGNE



public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    new name[MAX_PLAYER_NAME], string[48];
new atext[20];
if(PlayerInfo[clickedplayerid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[clickedplayerid][pSex] == 2) { atext = "Zensko"; }
new age = PlayerInfo[clickedplayerid][pAge];
new ptime = PlayerInfo[clickedplayerid][pConnectTime];
new pnumber = PlayerInfo[clickedplayerid][pPnumber];
new drank[20];
if(PlayerInfo[clickedplayerid][pDonateRank] == 1) { drank = "lvl 1"; }
else if(PlayerInfo[clickedplayerid][pDonateRank] == 2) { drank = "lvl 2"; }
//--------------------------------------------------------------------------
    GetPlayerName(clickedplayerid, name, sizeof(name));
    SendClientMessage(playerid,YELLOW,"================================");
    format(string, sizeof(string), "--| Ime: %s", name );
    SendClientMessage(playerid,YELLOW, string);
    format(string, sizeof(string), "--| Ping: %i", GetPlayerPing(clickedplayerid));
    SendClientMessage(playerid, YELLOW, string);
    format(string, sizeof(string), "--| Level: %i", GetPlayerScore(clickedplayerid));
    SendClientMessage(playerid, YELLOW, string);
format(string, sizeof(string), "--| SPol: %s",atext);
SendClientMessage(playerid, YELLOW,string);
format(string, sizeof(string), "--| Godine: %d",age);
SendClientMessage(playerid, YELLOW,string);

if(PlayerInfo[playerid][pPhoneBook] == 1)
{
format(string, sizeof(string), "--| Br: %d",pnumber);//dodati ako igrac ima imenik da mu pokaze
SendClientMessage(playerid, YELLOW,string);
}
else
{
format(string, sizeof(string), "--| Br: Nemate Imenik!");//dodati ako igrac ima imenik da mu pokaze
SendClientMessage(playerid, YELLOW,string);
}
format(string, sizeof(string), "--| Odigranih Sati: %d",ptime);
SendClientMessage(playerid, YELLOW,string);
format(string, sizeof(string), "--| Donator: %s",drank);
SendClientMessage(playerid, YELLOW,string);
SendClientMessage(playerid,YELLOW,"================================");
return 1;
}

Molim te daj samo malo bolje pojasni nista te covjece nekuzim.Ti zelis taj dole code staviti u svoj neki GM ili sta ?

Citat: [LYG] $--L84S--$ poslato Jun 05, 2011, 21:58:58 POSLE PODNE
Molim te daj samo malo bolje pojasni nista te covjece nekuzim.Ti zelis taj dole code staviti u svoj neki GM ili sta ?

koliko sam ja shvatio on zeli kad stisnes tab.. pokazuju ti se imena igraca ako klikne 2 put na jednog da m se pojavi njegov stats..
Mape:

))-((

Filescripte:

Dexy's Speedo/Fuel

Gamemodes:

))-((




SampArena FOREVER <3


Citat: [GT]Dexy poslato Jun 05, 2011, 22:01:40 POSLE PODNE
Citat: [LYG] $--L84S--$ poslato Jun 05, 2011, 21:58:58 POSLE PODNE
Molim te daj samo malo bolje pojasni nista te covjece nekuzim.Ti zelis taj dole code staviti u svoj neki GM ili sta ?

koliko sam ja shvatio on zeli kad stisnes tab.. pokazuju ti se imena igraca ako klikne 2 put na jednog da m se pojavi njegov stats..


da ali u Dialogu


Evo ti ja ovo sam izvukao iz svoje skripte
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    new klickigraca[512];
new coordstring[128];
new coordstring1[128];
new coordstring2[128];
new coordstring3[128];
new coordstring4[128];
new coordstring5[128];
new coordstring6[128];
    new name[MAX_PLAYER_NAME];
new atext[20];
if(PlayerInfo[clickedplayerid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[clickedplayerid][pSex] == 2) { atext = "Zensko"; }
new age = PlayerInfo[clickedplayerid][pAge];
new pnumber = PlayerInfo[clickedplayerid][pPnumber];
//--------------------------------------------------------------------------
    GetPlayerName(clickedplayerid, name, sizeof(name));
    format(coordstring1, sizeof(coordstring1), "{00C0FF}Ime: {FFFFFF}%s\n",name);
    format(coordstring2, sizeof(coordstring2), "{00C0FF}Level: {FFFFFF}%i\n",GetPlayerScore(clickedplayerid));
format(coordstring3, sizeof(coordstring3), "{00C0FF}Spol: {FFFFFF}%s\n",atext);
format(coordstring4, sizeof(coordstring4), "{00C0FF}Godine: {FFFFFF}%d\n",age);

if(PlayerInfo[playerid][pPhoneBook] == 1)
{
format(coordstring5, sizeof(coordstring5), "{00C0FF}Broj: {FFFFFF}%d\n",pnumber);//dodati ako igrac ima imenik da mu pokaze

}
else
{
format(coordstring6, sizeof(coordstring6), "{00C0FF}Broj: {FFFFFF}Nemate Imenik!\n");//dodati ako igrac ima imenik da mu pokaze
}
format(klickigraca, 512,"%s%s%s%s%s%s%s",coordstring,coordstring1,coordstring2,coordstring3,coordstring4,coordstring5,coordstring6);
ShowPlayerDialog(playerid, 665, DIALOG_STYLE_MSGBOX, "{00C0FF}Informacije Igraca", klickigraca , "Uredu", "");
return 1;
}

Citat: Outlawz poslato Jun 05, 2011, 22:15:13 POSLE PODNE
Evo ti ja ovo sam izvukao iz svoje skripte
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    new klickigraca[512];
new coordstring[128];
new coordstring1[128];
new coordstring2[128];
new coordstring3[128];
new coordstring4[128];
new coordstring5[128];
new coordstring6[128];
    new name[MAX_PLAYER_NAME];
new atext[20];
if(PlayerInfo[clickedplayerid][pSex] == 1) { atext = "Musko"; }
else if(PlayerInfo[clickedplayerid][pSex] == 2) { atext = "Zensko"; }
new age = PlayerInfo[clickedplayerid][pAge];
new pnumber = PlayerInfo[clickedplayerid][pPnumber];
//--------------------------------------------------------------------------
    GetPlayerName(clickedplayerid, name, sizeof(name));
    format(coordstring1, sizeof(coordstring1), "{00C0FF}Ime: {FFFFFF}%s\n",name);
    format(coordstring2, sizeof(coordstring2), "{00C0FF}Level: {FFFFFF}%i\n",GetPlayerScore(clickedplayerid));
format(coordstring3, sizeof(coordstring3), "{00C0FF}Spol: {FFFFFF}%s\n",atext);
format(coordstring4, sizeof(coordstring4), "{00C0FF}Godine: {FFFFFF}%d\n",age);

if(PlayerInfo[playerid][pPhoneBook] == 1)
{
format(coordstring5, sizeof(coordstring5), "{00C0FF}Broj: {FFFFFF}%d\n",pnumber);//dodati ako igrac ima imenik da mu pokaze

}
else
{
format(coordstring6, sizeof(coordstring6), "{00C0FF}Broj: {FFFFFF}Nemate Imenik!\n");//dodati ako igrac ima imenik da mu pokaze
}
format(klickigraca, 512,"%s%s%s%s%s%s%s",coordstring,coordstring1,coordstring2,coordstring3,coordstring4,coordstring5,coordstring6);
ShowPlayerDialog(playerid, 665, DIALOG_STYLE_MSGBOX, "{00C0FF}Informacije Igraca", klickigraca , "Uredu", "");
return 1;
}

Brate hvaal ti punooo o o oo  :P  :-*