Player Joined the server Script Help!
#1

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
Reply
#2

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
Reply
#3

o god i cant script...
Reply
#4

How hard is it to copy the scripts from the wiki and replace them with your OnPlayerConnect and OnPlayerDisconnect.
Reply
#5

can you help me with teamviewer?
Reply
#6

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
Reply
#7

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
Reply
#8

I don't think it's smart to run a server on a gamehost if you have no understanding of scripting.. idk.
Reply
#9

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
Reply
#10

You didn't had to lie, lawl this forum is MADE to help people.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)