Little help with MC:RP script. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Little help with MC:RP script. (
/showthread.php?tid=397818)
Little help with MC:RP script. -
Rodrifoo - 07.12.2012
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.
Re: Little help with MC:RP script. -
Threshold - 07.12.2012
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;
}
Re: Little help with MC:RP script. -
Ballu Miaa - 07.12.2012
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;
}