[fs/gm/plugin/php]Server Online Map Copyright [c] 2007 by Steven KolleЯ -
nyl - 25.01.2008
Download:
http://antim.withinside.net/withinsi.../onlinemap.rar
this isn't maded by me(i just mirror it)
1. What you need to run the map
==============================================
1. you need a v-server or a root-server
2. you need PHP on the server
3. the server must be in the web dir
==============================================
2. how to install
==============================================
1. unpack RAR
2. uplaod all files in the web-dir of your server
3. go into gtaserver Dir and CHMOD all the files 777 there in the scriptfiles dir (all Dirs&Files!!!!!!!!!!)
4. go into the onlinemap dir and change the path (variable called $verzeichnis) if you have change the server Dir
5. open you own pwn
6. go into dir onlinemap and open the code.txt
7. copy the code into your pwn & compile the pwn
8. that was it! have fun!
==============================================
3. BUgs found?
==============================================
if there any bugs or problems you can eMail me.....
eMail & msn:
big_steven20@hotmail.com
if there where bugs, i'll fix it and upload the newer version if there is possible.
you can see on your own map if there a new version ( in the advertisment!)...
==============================================
4. in this way....
==============================================
I want to thx you for using the map and help me to make the map better & better!
in OnGameModeInit
Код:
SetTimer("createdata",250,1);
in the end of the pawn file
Код:
//public funktion!
public createdata()
{
new string[256];
new count;
new insert[256];
new File:fhandle;
new playername[256];
count=0;
//Trдgt ein ob player online ist!
format(string, sizeof(string), "onlinemap/playeronline/status.txt");
if(!fexist(string))
{
fhandle = fopen(string,io_write);
fwrite(fhandle,"none");
fclose(fhandle);
}
else{
fhandle = fopen(string,io_write);
fwrite(fhandle," ");
fclose(fhandle);
fhandle = fopen(string,io_readwrite);
for(new i=0;i<100;i++)
{
count=count+1;
if(IsPlayerConnected(i))
{
format(insert, sizeof(insert), "&online%d=1",count);
fwrite(fhandle,insert);
}
else{
format(insert, sizeof(insert), "&online%d=0",count);
fwrite(fhandle,insert);
}
}fclose(fhandle);
}
count=0;
//Trдgt spieler name ein
new online;
format(string, sizeof(string), "onlinemap/playernames/status.txt");
if(!fexist(string))
{
fhandle = fopen(string,io_write);
fwrite(fhandle,"none");
fclose(fhandle);
}
else{
fhandle = fopen(string,io_write);
fwrite(fhandle," ");
fclose(fhandle);
fhandle = fopen(string,io_readwrite);
for(new i=0;i<100;i++)
{
count=count+1;
if(IsPlayerConnected(i))
{
online++;
GetPlayerName(i,playername,sizeof(playername));
format(insert, sizeof(insert), "&playername%d=<b>%s",count,playername);
fwrite(fhandle,insert);
}
else{
fwrite(fhandle,"&playername=none");
}
}
format(insert, sizeof(insert), "&online=%d",online);
fwrite(fhandle,insert);
fclose(fhandle);
}
count=0;
//Trдgt spieler health ein
format(string, sizeof(string), "onlinemap/playerhealth/status.txt");
if(!fexist(string))
{
fhandle = fopen(string,io_write);
fwrite(fhandle,"none");
fclose(fhandle);
}
else{
fhandle = fopen(string,io_write);
fwrite(fhandle," ");
fclose(fhandle);
fhandle = fopen(string,io_readwrite);
for(new i=0;i<100;i++)
{
count=count+1;
if(IsPlayerConnected(i))
{
new Float:phealth;
GetPlayerHealth(i,phealth);
format(insert, sizeof(insert), "&healthp%d=%f",count,phealth);
fwrite(fhandle,insert);
}
else{
fwrite(fhandle,"&health=0");
}
}
fclose(fhandle);
}
count=0;
//Trдgt spieler koordinaten ein
format(string, sizeof(string), "onlinemap/playercoords/status.txt");
if(!fexist(string))
{
fhandle = fopen(string,io_write);
fwrite(fhandle,"none");
fclose(fhandle);
}
else{
fhandle = fopen(string,io_write);
fwrite(fhandle," ");
fclose(fhandle);
fhandle = fopen(string,io_readwrite);
for(new i=0;i<100;i++)
{
count=count+1;
if(IsPlayerConnected(i))
{
new Float:x;
new Float:y;
new Float:z;
GetPlayerPos(i,x,y,z);
x=x/4;
y=y/4;
x=x+750;
if(y<0)
{
y=y-y-y;
}
else{
y=y-y-y;
}
y=y+750;
format(insert, sizeof(insert), "&x%d=%f&y%d=%f",count,x,count,y);
fwrite(fhandle,insert);
}
else{
fwrite(fhandle,"&x0=0&y0=0");
}
}
}
fclose(fhandle);
}
Re: [fs/gm/plugin/php]Server Online Map Copyright [c] 2007 by Steven KolleЯ -
snipe69 - 25.01.2008
do you have the owner authorization to release this?
if yes good men
Re: [fs/gm/plugin/php]Server Online Map Copyright [c] 2007 by Steven KolleЯ -
nyl - 25.01.2008
well it's public
just noone wanted it :-/
who wanted it can't find
Re: [fs/gm/plugin/php]Server Online Map Copyright [c] 2007 by Steven KolleЯ -
Grove - 25.01.2008
Can you explain in more detail at what it does please? and maybe show some examples, like screenshots
Re: [fs/gm/plugin/php]Server Online Map Copyright [c] 2007 by Steven KolleЯ -
MaTrIx4057 - 25.01.2008
If i'm right then its online map PHP on your website!
Re: [fs/gm/plugin/php]Server Online Map Copyright [c] 2007 by Steven KolleЯ -
nyl - 25.01.2008
yep you are
advice: do not use it if you got RP server
Re: [fs/gm/plugin/php]Server Online Map Copyright [c] 2007 by Steven KolleЯ -
Grove - 25.01.2008
Well what does the map display exactly? Any screenshots of the map?
Re: [fs/gm/plugin/php]Server Online Map Copyright [c] 2007 by Steven KolleЯ -
nyl - 25.01.2008
here:
http://sampmaps.breadfish.de/ga1/
Re: [fs/gm/plugin/php]Server Online Map Copyright [c] 2007 by Steven KolleЯ -
Sir.Steven - 25.01.2008
1:
I made this map

and its version 1.0 i think!
2:
thx thad you release it
3:
this map is out of date, because there will be only show 100 peaople (server limit of samp 0.1!)
4:
version 0.2 is made and this link is already version
http://sampmaps.breadfish.de/ga1/ 0.2 of the map, because i have insert a chat funktion and so on!
But version 0.2 isn't ready because i have no time to finish it! So other guy will finish it for me and will release it i think,
but i wont say anything about it!
So on,
Sir.Steven
Re: [fs/gm/plugin/php]Server Online Map Copyright [c] 2007 by Steven KolleЯ -
nyl - 25.01.2008
hope you release it soon
our IRC network will mirror it for you