SA-MP Forums Archive
when i kick a player from my server my server close why????? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: when i kick a player from my server my server close why????? (/showthread.php?tid=108702)



when i kick a player from my server my server close why????? - Giotis11 - 15.11.2009

i make a server for sa mp 0.2 i conver it to 0.3 but when i kick a player or quit the game my server close why?


Re: when i kick a player from my server my server close why????? - The_Real_Boss - 15.11.2009

we would have to see your script to see what the problem is


Re: when i kick a player from my server my server close why????? - notime - 15.11.2009

most likely u got something like OnPlayerDisconnect, a message there that says
"%s Left the server(lost connection or Leaving)"
u got the "Lost connection" and the "Leaving"
on "case 0: format(etc. etc.)"
and "case 1: format(Etc. etc.)"
so make a "case 2:" where it says kicked
for a (Banned) u dont need a case because thats the same a kicked.

well i hope this helps, i had this problem first to.

Notime


Re: when i kick a player from my server my server close why????? - Giotis11 - 15.11.2009

me have this for leaving kicked or timeout

case 0: format(string, sizeof(string), "[Leave] %s has left the server... (Timeout)", pName);
case 1: format(string, sizeof(string), "[Leave] %s has left server... (Leaving)", pName);
case 2: format(string, sizeof(string), "[Leave] %s has left server... (Kicked)", pName);


Re: when i kick a player from my server my server close why????? - Giotis11 - 15.11.2009

i still having this problem !!



Re: when i kick a player from my server my server close why????? - Giotis11 - 15.11.2009

i fix it with an oficial gamemode lvdm


Re: when i kick a player from my server my server close why????? - Cedimedi - 15.11.2009

Why you just try an admin FS?


Re: when i kick a player from my server my server close why????? - Backwardsman97 - 16.11.2009

Post what you have under OnPlayerDeath.


Re: when i kick a player from my server my server close why????? - 0ne - 16.11.2009

Quote:
Originally Posted by Giotis11
me have this for leaving kicked or timeout

case 0: format(string, sizeof(string), "[Leave] %s has left the server... (Timeout)", pName);
case 1: format(string, sizeof(string), "[Leave] %s has left server... (Leaving)", pName);
case 2: format(string, sizeof(string), "[Leave] %s has left server... (Kicked)", pName);
This is simple, i had this problem before add (playerid) to each pName like:

pName(playerid)

Код:
		case 0: format(string, sizeof(string), "[Leave] %s has left the server... (Timeout)", pName(playerid));
		case 1: format(string, sizeof(string), "[Leave] %s has left server... (Leaving)", pName(playerid));
		case 2: format(string, sizeof(string), "[Leave] %s has left server... (Kicked)", pName(playerid));