Noobie Question
#9

Quote:
Originally Posted by mavtias
pawn Код:
if (strcmp("/afk", cmdtext, true, 4) == 0)
{
    new name[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s is Afk,:(.", name);
    SendClientMessageToAll(GREEN, string);
    format(string, sizeof(string),"[AFK]%s", name);
    SetPlayerName(playerid, string);
    return 1;
}
This one IS working There you go
P.S I moved the Message before It sets the name, so It says "3xPloSioNxXx is Afk ." instead of "[AFK]3xPloSioNxXx is Afk ."
Dude,thank you so much,it worked!
Reply


Messages In This Thread
Noobie Question - by [XST]O_x - 27.09.2009, 11:21
Re: Noobie Question - by Mike Garber - 27.09.2009, 11:27
Re: Noobie Question - by [XST]O_x - 27.09.2009, 11:32
Re: Noobie Question - by Mike Garber - 27.09.2009, 11:39
Re: Noobie Question - by Correlli - 27.09.2009, 11:44
Re: Noobie Question - by Tr1viUm - 27.09.2009, 11:48
Re: Noobie Question - by [XST]O_x - 27.09.2009, 11:57
Re: Noobie Question - by Mike Garber - 27.09.2009, 12:18
Re: Noobie Question - by [XST]O_x - 27.09.2009, 12:23
Re: Noobie Question - by [XST]O_x - 27.09.2009, 12:29

Forum Jump:


Users browsing this thread: 2 Guest(s)