18.06.2012, 14:15
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;}