Chat with players ID [help rep+] - 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: Chat with players ID [help rep+] (
/showthread.php?tid=544156)
Chat with players ID [help rep+] -
MasonSFW - 31.10.2014
How i can make players say playerid = players name ?
Putative:
ID 0 is Sido
ID 1 is Ava
...etc.
if players say player ID on chat
putative: Hello id0 or Hello id 0 = Hello Sido
That example
Re: Chat with players ID [help rep+] -
AzaMx - 31.10.2014
try this?
pawn Код:
public OnPlayerText(playerid, text[])
{
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName,sizeof(pName));
format(string,sizeof(string),"%s[%i]: %s",pName,playerid,text);
printf(string);
SendClientMessageToAll(COLOR_WHITE,string);
return 0;
}
Re: Chat with players ID [help rep+] -
MasonSFW - 31.10.2014
Quote:
Originally Posted by AzaMx
try this?
pawn Код:
public OnPlayerText(playerid, text[]) { new pName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, pName,sizeof(pName)); format(string,sizeof(string),"%s[%i]: %s",pName,playerid,text); printf(string); SendClientMessageToAll(COLOR_WHITE,string); return 0; }
|
Nope not this i mean when players say playerid will replacement to player name !
Re: Chat with players ID [help rep+] -
AzaMx - 31.10.2014
Did you mean this?
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128];
format(string, sizeof(string), "[%d] %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
Re: Chat with players ID [help rep+] -
MasonSFW - 31.10.2014
Quote:
Originally Posted by AzaMx
Did you mean this?
pawn Код:
public OnPlayerText(playerid, text[]) { new string[128]; format(string, sizeof(string), "[%d] %s",playerid,text); SendPlayerMessageToAll(playerid,string); return 0; }
|
Nope :3, putative id 1 name is Paul, When players say Hey id1 will be Hey Paul like that !
Re: Chat with players ID [help rep+] -
AzaMx - 31.10.2014
You could explain in better way..
Re: Chat with players ID [help rep+] -
MasonSFW - 31.10.2014
NEVER MIND THIS FEATURE
Re: Chat with players ID [help rep+] -
Stinged - 31.10.2014
Maybe you could stop facepalming and fix your damn English.
And what the fuck is "NEVERMIND THIS
FEATHER"
Re: Chat with players ID [help rep+] -
AzaMx - 31.10.2014
Quote:
Originally Posted by Stinged
Maybe you could stop facepalming and fix your damn English.
And what the fuck is "NEVERMIND THIS FEATHER"
|
Great answer.
Re: Chat with players ID [help rep+] -
MasonSFW - 31.10.2014
I mean feature -3-