need help with two things.
#4

Quote:
Originally Posted by WoodPecker
Посмотреть сообщение
Add this at OnPlayerDisconnect
Код:
new discstring[128];
new sendername[MAX_PLAYER_NAME];
switch(reason)
{
case 0: format(discstring, sizeof(discstring), "* %s has left the server. (Timeout)", sendername);
case 1: format(discstring, sizeof(discstring), "* %s has left the server. (Leaving)", sendername);
case 2: format(discstring, sizeof(discstring), "* %s has left the server. (Kicked)", sendername);
}
I guess he were faster, but I want to mention that using 128 string is too much.

@MeNMyselv,
If you use WoodPecker's code then you need calculate the most higher string of these sentences like this, 24 as the limit of the player name + the higher string of these sentences. That would "* %s has left the server. (Timeout)" so, if you calculate it, it's 24+33=67 string value, so you need to put another one aswell so it's 68, the less you use is the better, just mentioning.

About the spawn car, there are plany filterscrips like that, just simply search them.
Reply


Messages In This Thread
need help with two things. - by MeNMyselv - 11.07.2011, 18:44
Re: need help with two things. - by WoodPecker - 11.07.2011, 18:58
Re: need help with two things. - by MeNMyselv - 11.07.2011, 19:04
Re: need help with two things. - by Toreno - 11.07.2011, 19:05
Re: need help with two things. - by WoodPecker - 11.07.2011, 19:07
Re: need help with two things. - by MeNMyselv - 11.07.2011, 19:13
Re: need help with two things. - by Wesley221 - 11.07.2011, 19:16
Re: need help with two things. - by WoodPecker - 11.07.2011, 19:16
Re: need help with two things. - by Adil - 11.07.2011, 19:22
Re: need help with two things. - by MeNMyselv - 11.07.2011, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)