13.10.2012, 23:21
pawn Код:
if(!strcmp(params, "health", true))
{
if(params == "health" && SDay == "health") return SendClientMessage(playerid, COLOR_GREY, "The day is already on day of good health.");
if(!strcmp(params, "health", true))
{
if(params == "health" && SDay == "health") return SendClientMessage(playerid, COLOR_GREY, "The day is already on day of good health.");
if(params == "health" && SDay == "health) return SendClientMessage(playerid, COLOR_GREY, "The day is already on day of good health.");
if(!strcmp(params, "health", true) || !strcmp(params, "SDay", true)) return SendClientMessage(playerid, COLOR_GREY, "The day is already on day of good health.");
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;
}
if(!strcmp(params, "health", true))
{
if(strcmp(params, "health", true) == 0 || strcmp(params, SDay, true) == 0) 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, "health", true) == 0 || strcmp(params, SDay, true) == 0) 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;
}