25.01.2008, 19:11
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
in the end of the pawn file
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);
Код:
//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); }