30.09.2012, 12:41
As stated, I'm new
Would this work any better?
Quote:
CMD:fakechat(playerid, params[]) { new Player, xChat[24]; if(sscanf(params)) return SendClientMessage(playerid, COLOUR_RED, "Will send a fake message of the specified player!"); else { if(!IsPlayerConnected(strval(params))) return SendClientMessage(playerid, COLOUR_RED, "This player is not connected"); SendClientMessage(playerid, COLOUR_RED, "Fake chat sent!"); SendPlayerMessageToAll(Player, xChat); } return 1; } |