HELP ME PLZ
#1

hello guys help me how i make this
%S has joind the server /left the server / end etc
Reply
#2

First stop posting topics with that redicilous fontsize.
Second:

pawn Код:
public OnPlayerConnect(playerid)
{
    new string[64], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    format(string,sizeof string,"%s has joined the server. Welcome!",pName);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
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 left the server. (Timed out)",name);
        case 1: format(string,sizeof string,"%s left the server. (Leaving)",name);
        case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
    }
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
from the sa-mp wiki, next time first search on http://wiki.sa-mp.com and on this forum before posting a topic
Reply
#3

thanks cya and plz check server
Reply
#4

Nvm I'm to late.
Reply
#5

Quote:

thanks cya and plz check server

Was this a SA ?! You should be banned :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)