Playerid Problem - 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: Playerid Problem (
/showthread.php?tid=400288)
Playerid Problem -
Blackazur - 17.12.2012
Hello, i have a Problem that i will that the Playerid is too screened, when a Guy type in the Chat, but when he type the normal Message come too without the Playerid, how can i remove the normal Message without the playerid?
Here are picture:
The Code from OnPlayerText:
Код:
new stringbig[356];
format(stringbig,sizeof(stringbig),"(%d): %s",playerid, text);
SendPlayerMessageToAll(playerid,stringbig);
if(strfind(text, ":", true) != -1) {
new i_numcount, i_period, i_pos;
while(text[i_pos]) {
if('0' <= text[i_pos] <= '9') i_numcount ++;
else if(text[i_pos] == '.') i_period ++;
i_pos++;
}
}
Re: Playerid Problem -
Konstantinos - 17.12.2012
pawn Код:
new stringbig[128]; // Limit = 128
format(stringbig,sizeof(stringbig),"(%d): %s",playerid, text);
SendPlayerMessageToAll(playerid,stringbig);
// At the end of the callback
return 0; // for the custom chat
}
Re: Playerid Problem -
park4bmx - 17.12.2012
return 0; at all OnPlayerText callback's