Player Joined the server Script Help! -
[bT]knip_knap - 02.09.2011
Guys i got not this script and i need it. Player name Joined the server. Player name left the server. <---- I need this i hope you all know what i mean:P
Re: Player Joined the server Script Help! -
corne - 02.09.2011
Double wrong section?
This is the section for Gamemodes, not for Filterscripts.
And becouse you need help it would be also wrong in the Filterscript section.
Try using this:
https://sampwiki.blast.hk/wiki/OnPlayerConnect
and this:
https://sampwiki.blast.hk/wiki/OnPlayerDisconnect
EDIT: Im toolate, watch above :P
Re: Player Joined the server Script Help! -
[bT]knip_knap - 02.09.2011
o god i cant script...
Re: Player Joined the server Script Help! -
corne - 02.09.2011
How hard is it to copy the scripts from the wiki and replace them with your OnPlayerConnect and OnPlayerDisconnect.
Re: Player Joined the server Script Help! -
[bT]knip_knap - 02.09.2011
can you help me with teamviewer?
Re: Player Joined the server Script Help! -
dahley5 - 02.09.2011
Let me explain:
In your script you find this line:
pawn Код:
public OnPlayerConnect(playerid)
{
return 1;
}
You will have to replace all that with:
pawn Код:
public OnPlayerConnect(playerid)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined knip_knap's server. Welcome!",pName);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
You can edit the line at anytime.
now for the disconnect:
You will have this line:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
Replace that all with
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string,sizeof string,"%s knip_knap's server. (Timed out)",name);
case 1: format(string,sizeof string,"%s knip_knap's server. (Leaving)",name);
case 2: format(string,sizeof string,"%s knip_knap's server.(Kicked/Banned)",name);
}
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
i hope you get it now
Re: Player Joined the server Script Help! -
[bT]knip_knap - 02.09.2011
Yea i got it but..... i dont have a script I mean i cant make a script because i m running me server on serverFFS so i cant get on it
Re: Player Joined the server Script Help! -
dahley5 - 02.09.2011
I don't think it's smart to run a server on a gamehost if you have no understanding of scripting.. idk.
Re: Player Joined the server Script Help! -
[bT]knip_knap - 02.09.2011
Lol smart ass:P No you guys ar doning all me work hahahahaha. No i know what you mean:P But i open me gamemode right now and edit that line

Then it's sould working because i got lots of filterscripter and scriptfiles so i edit me gamemode

ty for helping me
Re: Player Joined the server Script Help! -
dahley5 - 02.09.2011
You didn't had to lie, lawl this forum is MADE to help people.