29.06.2015, 23:36
PHP код:
CMD:i(playerid, params[])
{
new ID,string[300], string3[300], string4[128], name[60];
if(sscanf(params, "u", ID)) SendClientMessage(playerid, COLOR_WHITE, "USAGE: /i [id]");
else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
else
{
HideDraw(playerid);
GetPlayerName(ID, name, 60);
I don't know if 2 players using this cmd at same time
It works like this:
PLAYER A typed /i 2
PLAYER B typed /i 1
Like if they use this cmd at same time so PLAYER B typed /i 1 so it shows to player A and player B /i 1.
I mean, it should show to player A /i 2 and to player B /i 1 and if player C type /i 3 so it shows to players C /i 3
Idk it bugged when 2 players use this cmd at same time. it shows to both screen what player B typed.