AFk system prob.
#5

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..
Reply


Messages In This Thread
AFk system prob. - by kepa333 - 18.06.2012, 14:09
Re: AFk system prob. - by Ironboy - 18.06.2012, 14:15
Re: AFk system prob. - by MarinacMrcina - 18.06.2012, 14:17
Re: AFk system prob. - by kepa333 - 18.06.2012, 14:17
Re: AFk system prob. - by FUNExtreme - 18.06.2012, 14:32
Re: AFk system prob. - by Ironboy - 18.06.2012, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)