Sziasztok!
Írtam egy ilyen kis alap stats rendszert!
Amiket meg lehet vele nézni:
Név
Pénz
Pont
Skin
Ping
Hogyan is hozzuk elõ? -TAB és nyomj a nevedre!
Kód
#define FILTERSCRIPT
#include <a_samp>
#define DIALOG_0 109
public OnFilterScriptInit()
{
print(\"rStats betöltve\");
return 1;
}
public OnFilterScriptExit()
{
print(\"rStats Leáll..\");
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
if(clickedplayerid == playerid)
{
new name[MAX_PLAYER_NAME+1];
new string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),\"{0900ff}Név:{f7ff00}%s\\n{0900ff}Pénz:{f7ff00}%d\\n{0900ff}Pont:{f7ff00}%d\\n{0900ff}Skin:{f7ff00}%d\\n{0900ff}Ping:{f7ff00}%d\",name,GetPlayerMoney(playerid),GetPlayerScore(playerid),GetPlayerSkin(playerid),GetPlayerPing(playerid));
ShowPlayerDialog(playerid, DIALOG_0, DIALOG_STYLE_MSGBOX, \"{f7ff00}r{0900ff}Stats\", string, \"Rendben\", \"\");
}
else
{
new name[MAX_PLAYER_NAME+1];
new string[128];
GetPlayerName(clickedplayerid, name, sizeof(name));
format(string,sizeof(string),\"{0900ff}Név:{f7ff00}%s\\n{0900ff}Pénz:{f7ff00}%d\\n{0900ff}Pont:{f7ff00}%d\\n{0900ff}Skin:{f7ff00}%d\\n{0900ff}Ping:{f7ff00}%d\",name,GetPlayerMoney(clickedplayerid),GetPlayerScore(clickedplayerid),GetPlayerSkin(clickedplayerid),GetPlayerPing(clickedplayerid));
ShowPlayerDialog(playerid, DIALOG_0, DIALOG_STYLE_MSGBOX, \"{f7ff00}r{0900ff}Stats\", string, \"Rendben\", \"\");
}
}
Kép:
http://kepfeltoltes.hu/130728/486025309sa-mp-006_www.kepfeltoltes.hu_.png[/img]