hi can we welcome different players in server - 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: hi can we welcome different players in server (
/showthread.php?tid=447349)
Delete -
gurmani11 - 29.06.2013
Delete
Delete -
gurmani11 - 30.06.2013
Delete
Re: hi can we welcome different players in server -
RowdyrideR - 30.06.2013
Quote:
public OnPlayerConnect(playerid)
{
new str[256];
format(str, sizeof(str), "Welcome %s to the server!", PlayerName(playerid));
SendClientMessage(playerid,RED,str);
return 1;
}
stock PlayerName(playerid)
{
new name[24];
GetPlayerName(playerid,name,sizeof(name));
return name;
}
|
I guess that's it.
Re: hi can we welcome different players in server -
RowdyrideR - 30.06.2013
and you can put some specific players (manually)
Quote:
public OnPlayerConnect(playerid)
{
if(strcmp(PlayerName(playerid),"[AX]Yo",true))
{
SendClientMessageToAll(RED," Welcome [AX]Yo to the server);
return 1;
}
return 1;
}
|
Re: hi can we welcome different players in server -
gurmani11 - 30.06.2013
Delete