Gigel92abaz Posted May 15, 2015 Report Share Posted May 15, 2015 Problema intalnita (descriere): Cum as putea adauga pe o raza cand iese cineva de pe server x has left the server(crash) arata la tot serverul...Ero(area / rile) / warning-(ul / urile): Nu amLiniile de cod / sursa / script-ul(obligatoriu): new szString[64], playerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, playerName, MAX_PLAYER_NAME); new szDisconnectReason[3][] = { "Timeout/Crash", "Quit", "Kick/Ban" }; format(szString, sizeof szString, "%s left the server (%s).", playerName, szDisconnectReason[reason]); SendClientMessageToAll(0xC4C4C4FF, szString); } return 1;}Imagini / Video (optional):Ati incercat sa rezolvati singur?: Da... Link to comment Share on other sites More sharing options...
0 WopsS Posted May 15, 2015 Report Share Posted May 15, 2015 Trebuie sa mergi prin toti jucatorii online si sa vezi daca sunt in raza jucatorului care iese de pe server. Link to comment Share on other sites More sharing options...
0 Gigel92abaz Posted May 15, 2015 Author Report Share Posted May 15, 2015 Deci, SendMessageToAll arata la toti cand se deconecteaza eu vreau sa arate pe o anumita raza cand iese nu la tot serverul.. Link to comment Share on other sites More sharing options...
0 WopsS Posted May 15, 2015 Report Share Posted May 15, 2015 Ti-am spus cum trebuie facut, nu dau mura-n gura. Link to comment Share on other sites More sharing options...
0 WiDuAlK Posted May 15, 2015 Report Share Posted May 15, 2015 Incearca cu ProxDetector @WiDuAlK Tutorial`s: PAWN pentru SA:MP in Notepad++Tutorial Register-Login MYSQL R39 Tutorial etape de register Cum sa creezi un PayDay (2 METODE)Cum sa creezi o factiune de la 0 PART 1 Cum sa creezi o factiune de la 0 PART 2 Cum sa creezi o factiune de la 0 partea a 3-a (ULTIMA)Functii folositoare din NEW.PWN Tutorial Engine Vehicle Optimizare simplitate si stil Foreach inlocuieste loop-ul SSCANF si ZCMD Cum sa creezi o poarta miscatoare Tutorial cum sa creezi un radio pe server si cum sa iti creezi melodi pentru ascultat pe server Cum sa tii un server din PC folosind HAMACHI Documentatie* Despre hack-uri Servicii: Servicii Scripting & Mapping Produse: Farmer Job Realistic Drugs Dealer System [SA-MP] UNIQUE Link to comment Share on other sites More sharing options...
0 Gigel92abaz Posted May 16, 2015 Author Report Share Posted May 16, 2015 UP ? Link to comment Share on other sites More sharing options...
0 NoNamed Posted May 16, 2015 Report Share Posted May 16, 2015 Trebuie sa mergi prin toti jucatorii online si sa vezi daca sunt in raza jucatorului care iese de pe server.Mai mult de atat nu avem ce sa-ti explicam, mura-n gura nu se da .Te folosesti de ProxDetector si IsPlayerInRangeOfPoint . Link to comment Share on other sites More sharing options...
0 eXorcism Posted May 17, 2015 Report Share Posted May 17, 2015 (edited) Foloseste functia asta, tutorial de folosire nu primesti :)). stock SendPlayerRangeMessage( playerid, Float: f_Range, szMessage[ ] ){ new Float: f_pPos[ 3 ]; GetPlayerPos( playerid, f_pPos[ 0 ], f_pPos[ 1 ], f_pPos[ 2 ] ); for( new i = 0; i < MAX_PLAYERS; i++ ){ if( !IsPlayerConnected( i ) ) continue; if( !IsPlayerInRangeOfPoint( i, f_Range, f_pPos[ 0 ], f_pPos[ 1 ], f_pPos[ 2 ] ) ) continue; SendClientMessage( i, -1, szMessage ); } return 1; } Edited May 17, 2015 by eXorcism I'm back bitches. Link to comment Share on other sites More sharing options...
0 eXorcism Posted May 17, 2015 Report Share Posted May 17, 2015 Vad ca fara mura in gura nu se poate, pune in loc de SendClientMessageToAll asta SendPlayerRangeMessage( playerid, 20.0, szString ); I'm back bitches. Link to comment Share on other sites More sharing options...
0 Rappy Posted May 22, 2015 Report Share Posted May 22, 2015 Ba da , merge, sunt 100% sigur. Cauta pe http://wiki.sa-mp.com cum sa folosesti ProxDetector. Link to comment Share on other sites More sharing options...
0 DCosmin Posted May 22, 2015 Report Share Posted May 22, 2015 Cauti asa ceva?new szString[64], playerName[MAX_PLAYER_NAME], Float:x, Float:y, Float:z; GetPlayerName(playerid, playerName, MAX_PLAYER_NAME); GetPlayerPos(playerid, x, y, z); new szDisconnectReason[3][] = { "Timeout/Crash", "Quit", "Kick/Ban" }; format(szString, sizeof szString, "%s left the server (%s).", playerName, szDisconnectReason[reason]); if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z)) //7.0 e distanta, modifica daca vrei { SendClientMessage(0xC4C4C4FF, szString); } Link to comment Share on other sites More sharing options...
0 Mafia. Posted May 24, 2015 Report Share Posted May 24, 2015 Incearca asa : new wakaname[25]; new string2[182]; GetPlayerName(playerid,wakaname,25); switch(reason) { case 0: format(string2,sizeof(string2),"%s exited the game (Crash).",wakaname); case 1: format(string2,sizeof(string2),"%s exited the game (/q).",wakaname); case 2: format(string2,sizeof(string2),"%s exited the game (Kicked/Banned).",wakaname); } ProxDetector(20.0, playerid, string2, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); Link to comment Share on other sites More sharing options...
0 WiDuAlK Posted May 24, 2015 Report Share Posted May 24, 2015 Peste 48 de ore fara raspuns. Ceri mura-n gura fara sa pui neuronii la contributie. Nu se mai merita > T/C! @WiDuAlK Tutorial`s: PAWN pentru SA:MP in Notepad++Tutorial Register-Login MYSQL R39 Tutorial etape de register Cum sa creezi un PayDay (2 METODE)Cum sa creezi o factiune de la 0 PART 1 Cum sa creezi o factiune de la 0 PART 2 Cum sa creezi o factiune de la 0 partea a 3-a (ULTIMA)Functii folositoare din NEW.PWN Tutorial Engine Vehicle Optimizare simplitate si stil Foreach inlocuieste loop-ul SSCANF si ZCMD Cum sa creezi o poarta miscatoare Tutorial cum sa creezi un radio pe server si cum sa iti creezi melodi pentru ascultat pe server Cum sa tii un server din PC folosind HAMACHI Documentatie* Despre hack-uri Servicii: Servicii Scripting & Mapping Produse: Farmer Job Realistic Drugs Dealer System [SA-MP] UNIQUE Link to comment Share on other sites More sharing options...
-1 Gigel92abaz Posted May 15, 2015 Author Report Share Posted May 15, 2015 Nu merge cu ProxDetector Link to comment Share on other sites More sharing options...
Question
Gigel92abaz
Problema intalnita (descriere): Cum as putea adauga pe o raza cand iese cineva de pe server x has left the server(crash) arata la tot serverul...
Ero(area / rile) / warning-(ul / urile): Nu am
Liniile de cod / sursa / script-ul(obligatoriu):
new
szString[64],
playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
new szDisconnectReason[3][] =
{
"Timeout/Crash",
"Quit",
"Kick/Ban"
};
format(szString, sizeof szString, "%s left the server (%s).", playerName, szDisconnectReason[reason]);
SendClientMessageToAll(0xC4C4C4FF, szString);
}
return 1;
}
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da...
Link to comment
Share on other sites
13 answers to this question
Recommended Posts