Client Message Little Problem.
#2

pawn Код:
CMD:paycheck(playerid, params[])
{
    new string[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    format(string, sizeof(string), "* You have played exactly %d/45 minutes since your last paycheck.", PlayerInfo[playerid][pMinutes]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    if(PlayerInfo[playerid][pMinutes] < 45)
    {
    format(string, sizeof(string), "* You wont recieve a paycheck at the end of the hour.");

    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    }
    else
    format(string, sizeof(string), "* You will recieve a paycheck at the end of the hour.");
    SendClientMessage(playerid, COLOR_YELLOW2, string);
    return 1;
}
(Y) hope it works
Reply


Messages In This Thread
Client Message Little Problem. - by Laure - 09.11.2012, 03:25
Re: Client Message Little Problem. - by Glad2BeHere - 09.11.2012, 03:33
Re: Client Message Little Problem. - by PaulDinam - 09.11.2012, 03:34
Re: Client Message Little Problem. - by Glad2BeHere - 09.11.2012, 03:37
Re: Client Message Little Problem. - by Laure - 09.11.2012, 03:45

Forum Jump:


Users browsing this thread: 1 Guest(s)