How would I make this work?
#3

pawn Код:
if(!strcmp(params, "health", true))
    {
        if(!strcmp(params, "health", true) || !strcmp(params, "SDay", true)) return SendClientMessage(playerid, COLOR_GREY, "The day is already on day of good health.");
        timerhealthd = SetTimer("HealthDTimer", 1000, true);
        SendClientMessageToAll(COLOR_LIGHTBLUE, "Calendar: Today is the day of {33AA33}good health{33CCFF} your doctor has flagged you as very healthy.");
        SendClientMessageToAll(COLOR_LIGHTBLUE, "Roleplay Explanation: You will recieve 1 health point for each second played on the server, for the length of the day.");
        SDay = "health";
        return 1;
    }
    if(!strcmp(params, "normal", true))
    {
        if(!strcmp(params, "normal", true) || !strcmp(params, "SDay", true)) return SendClientMessage(playerid, COLOR_GREY, "The day is already normal.");
        KillTimer(timerhealthd);
        SendClientMessageToAll(COLOR_LIGHTBLUE, "Calendar: Today is just a regular day.");
        SDay = "normal";
        return 1;
    }
Doesn't work properly.
Reply


Messages In This Thread
How would I make this work? - by grantism - 13.10.2012, 23:21
Re: How would I make this work? - by JaKe Elite - 14.10.2012, 01:15
Re: How would I make this work? - by grantism - 14.10.2012, 01:37
Re: How would I make this work? - by JaKe Elite - 14.10.2012, 01:38
Re: How would I make this work? - by Emmet_ - 14.10.2012, 01:39
Re: How would I make this work? - by grantism - 14.10.2012, 02:07

Forum Jump:


Users browsing this thread: 1 Guest(s)