SA-MP Forums Archive
Does it exist? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Does it exist? (/showthread.php?tid=394435)



Does it exist? - JEkvall95 - 22.11.2012

As first I'm wondering, does it exist any admin script which let players view other players stats on a website?

I don't find it


for the second I wonder how to let people change their name colors ingame? with /yellow and then you have yellow name


AW: Does it exist? - Skimmer - 22.11.2012

For stats on website, you want look players stats from your website, right?
Save the stats from any player, in mysql database and call it from your website, using PHP.

For your command /yellow, just use the function SetPlayerColor.

pawn Код:
if (strcmp("/yellow", cmdtext, true, 10) == 0)
{
    SetPlayerColor(playerid, color);
    return 1;
}
EDIT: Here is a link, for SA-MP Color Picker.


Re: Does it exist? - Drake_Lopez - 22.11.2012

It will work with MYscl and PHP as he said! ^


Re: Does it exist? - JEkvall95 - 22.11.2012

I don't want to use mysql... I have all my files on a local computer. how to do it then? help


AW: Does it exist? - Skimmer - 22.11.2012

Do you can script PHP, HTML? (HTML is there to design your website, colours etc.)
You should use fopen(), fread() in your script then.
http://php.net/manual/de/function.fopen.php


Re: Does it exist? - JEkvall95 - 22.11.2012

whut? ATM Im talking about players stats on a website O_o

how to do it then? I have a website up running from my computer


AW: Does it exist? - Skimmer - 22.11.2012

I talk already about website. fopen() opens a file in your computer. fread() reads the content of the file. So, you can open your JEkvall95.ini. But MySQL is easy to get players stats.


Re: Does it exist? - JEkvall95 - 22.11.2012

I don't get it :S what files are you talking about? I dont even have those files. Could u please make a tutorioal or something? O_o


AW: Does it exist? - Skimmer - 22.11.2012

What do you use, to save players stats and which text format?

- Dini?
- Y_INI?
- MySQL?
- etc.


- .ini
- .txt
- etc.



Re: Does it exist? - JEkvall95 - 22.11.2012

EDIT: Im using y_ini