Little help with MC:RP script.
#1

So how can i edit the text when someone comes to the server? Now when someone comes it says "Chuck has joined to Modern California RP!" So im asking how can i change it to be like this "Chuck has joined American RP!" :P Bad english.
Reply
#2

Here!
pawn Код:
public OnPlayerConnect(playerid)
{
    new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "» %s Has Joined The Server", pname);
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
}
Reply
#3

You are required to make some changes within the OnPlayerConnect(playerid) callback. U need to make it like this!

pawn Код:
public OnPlayerConnect(playerid)
{
    new name[MAX_PLAYER_NAME], string[26 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "* %s Has Joined American RP", name);
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)