A little help
#1

Hey guys
I want to make a little thing for a specific player when they log in

I want it to be like

Код:
PlayerName has logged in.
Or

Код:
Server owner PlayerName has logged in.
How would this be possible?
Reply
#2

when the player logs in, send a message..
Reply
#3

I know that, and i have it, but if i wanted a Specific player to be announced a different style of announcement, what would i do?

I mean

A normal player's would be like this: *%s has logged in!

A specific player's would be like this: Server owner Test has logged in!
Reply
#4

check if he's the server owner, format the message to say what you want and send it

show some code also
Reply
#5

Thanks, but I've solved now.
Reply
#6

Edit: NVM You already solved it xD

Where the player logs in, just put this code:
pawn Код:
new string[128], name;
    if(!IsAdmin){ //Check if Player is not Admin, could be set to !PlayerInfo[playerid][pAdmin] > 0
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s has logged in.", GetPlayerName(playerid));
    SendClientMessageToAll(COLOR_YELLOW, string); }
    else {
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "[Admin] %s has logged in.", GetPlayerName(playerid));
    SendClientMessageToAll(COLOR_YELLOW, string);}
Just adjust the color to what you want!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)