Help me with my /helpme command xD
#5

Quote:
Originally Posted by Tee
Посмотреть сообщение
Sorry for that, I misread the post.



Try this:

pawn Код:
COMMAND:helpme(playerid, params[])
{
    new message[128], string[128];
    if(PlayerStat[playerid][hMuted] == 1) return SendClientMessage(playerid, GREY, "You are muted from sending help requests.");
    if(sscanf(params,"s[128]", message))return SendClientMessage(playerid, GREY, "USAGE: /helpme [message]");
    if(PlayerStat[playerid][HelpmeReloadTime] > 1) return SendClientMessage(playerid, GREY, "You must wait 60 seconds before sending another help request.");
    SendClientMessage(playerid, GREEN, "You have successfully sent a help request, please be patient");
    PlayerStat[playerid][HelpmeReloadTime] = 61;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && PlayerStat[i][HelperLevel] >= 1)
        {
            format(string, sizeof(string), "(( %s (ID: %d) has sent a help request: %s ))", GetOOCName(playerid), playerid, message);
            SendClientMessage(i, GREEN, string);
            HelpmeLog(string);
        }
    }
    return 1;
}
Its like the code i posted above But i want to know why this

pawn Код:
SendClientMessage(playerid, GREEN, "You have successfully sent a help request, please be patient");
PlayerStat[playerid][HelpmeReloadTime] = 61;
isn't working when i place in
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
Reply


Messages In This Thread
Help me with my /helpme command xD - by Soumi - 07.08.2011, 23:48
Re: Help me with my /helpme command xD - by Tee - 07.08.2011, 23:52
[No subject] - by Soumi - 08.08.2011, 00:23
Re: Re : Help me with my /helpme command xD - by Tee - 08.08.2011, 00:28
Re : Re: Re : Help me with my /helpme command xD - by Soumi - 08.08.2011, 00:36
Re: Help me with my /helpme command xD - by Tee - 08.08.2011, 00:40
Re: Help me with my /helpme command xD - by Kush - 08.08.2011, 00:41
Re: Help me with my /helpme command xD - by Tee - 08.08.2011, 00:47
Re : Help me with my /helpme command xD - by Soumi - 08.08.2011, 00:52
Re: Help me with my /helpme command xD - by Tee - 08.08.2011, 00:54

Forum Jump:


Users browsing this thread: 2 Guest(s)