HappyHour Help Needed
#1

how can i make a good Happhour that the players only can spawn a hydra on happyhour?

i have this

Код:
forward Happyday(playerid);

public OnPlayerCommandText(playerid, cmdtext[])
{
        if(!strcmp("/happyhour", cmdtext, true))
	{
		if(IsPlayerAdmin(playerid) == 1)
		{
		    SetTimerEx("Happyday",240000,1,"d",playerid);
			SendClientMessageToAll(0x050CFAFF, "HAPPYHOUR!");
			return 1;
		}
	}
	return 0;
}

public Happyday(playerid)
{
	return 1;
}
Reply
#2

What should players do on that "happy hour" ?

Use variables. For exemple:
Код:
if ( HappyHour == 1 )
{
    //Some codes
}
else
{
    //HappyHour = 0 & other codes
}
Reply
#3

they must can spawn a hydra or hunter only in happyhour
Reply
#4

i needed help with this so fast as possible
Reply
#5

[pawn]forward Happyday(playerid);
new bool:HappyHour;

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        if(!strcmp("/happyhour", cmdtext, true))
    {
        if(IsPlayerAdmin(playerid) == 1)
        {
            SetTimerEx("Happyday",240000,1,"d",playerid);
                         HappyHour=true;
            SendClientMessageToAll(0x050CFAFF, "HAPPYHOUR!");
            return 1;
        }
    }
    return 0;
}
pawn Код:
public Happyday(playerid)
{
        HappyHour=false;
    return 1;
}
And when they try to spawn a hydra
pawn Код:
if(HappyHour==true)
{
//let them
}
else
{
//not happyhour no hydra
}
Reply
#6

THANKYOU SO MUCH MY FRIEND
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)