Quote:
Originally Posted by Ironboy
pawn Код:
if(strcmp(cmd, "/afk", true) == 0) { new name[MAX_PLAYER_NAME]; new Float:x, Float:y, Float:z; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "[AFK] %s Is Now Afk (Away From Keyboard)", name ); SendClientMessageToAll(COLOR_GROVE, string); GetPlayerPos(playerid, x, y, z); SetPlayerPos(playerid, x, y, z+800); SendClientMessageToAll(COLOR_GROVE,string); return 1;}
|
Quote:
Originally Posted by MarinacMrcina
Try this
pawn Код:
if(strcmp(cmd, "/afk", true) == 0) { new name[MAX_PLAYER_NAME]; new Float:x, Float:y, Float:z; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "[AFK] %s Is Now Afk (Away From Keyboard)", name ); SendClientMessageToAll(COLOR_GROVE, string); GetPlayerPos(playerid, x, y, z); SetPlayerPos(playerid, x, y, z+800); SendClientMessageToAll(COLOR_GROVE, string); return 1; }
|
MarinacMrcina, did you just copy IronBoy?
You both added a "SendClientMessageToAll" that isn't in the original post. Coincidence?
Anyway, just a tip for the creator of this topic, you'll get the message twice..