Help timer
#1

Hiya guys im making a jobhelp for all the jobs but how do i set it so it shows the top txt fot like 5 second then shows the bottom and so on if i need more.. im not good with timers so im stuck i tryed the tuttime but that dont work?




Quote:

if(strcmp(cmd, "/jobhelp", true) == 0)
{
if(PlayerInfo[playerid][pJob] != 1
{
{
SendClientMessage(i, COLOR_GREEN, "Welcome to the harvister job.");
SendClientMessage(i, COLOR_YELLOW, "Head over to the barn and hop into one of there Harvisters .");
SendClientMessage(i, COLOR_YELLOW, "Type /harvest to activate the harvest job .");
}
else if
{
SendClientMessage(i, COLOR_GREEN, "Head threw the Markers to havest the feilds without killing yourselve.");
SendClientMessage(i, COLOR_YELLOW, "Then drop your load at this shed and receve your payment .");
SendClientMessage(i, COLOR_YELLOW, "You will need to wait 30 miniutes before you can harvest again .");
}
return 1;
}
}
}

Reply
#2

Can anyone help this is the last thing im stuck on
Reply
#3

I don't understand what you're trying to do.
Reply
#4

Quote:
Originally Posted by BSMan
not 100% sure it works, i wrote it now. so check it and ask for more questions if u have
that will 100% not work

pawn Код:
if(!strcmp("/jobhelp", cmdtext, true))
        return JobHelp(playerid, 5000, 0);
pawn Код:
forward JobHelp(playerid, time, block);
public JobHelp(playerid, time, block)
{
    switch(PlayerInfo[playerid][pJob])
    {
        case 18:
            switch(block)
            {
                case 0:
                {
                    SendClientMessage(playerid, COLOR_GREEN, "Welcome to the harvister job.");
                    SendClientMessage(playerid, COLOR_YELLOW, "Head over to the barn and hop into one of there Harvisters .");
                    SendClientMessage(playerid, COLOR_YELLOW, "Type /harvest to activate the harvest job .");
                }
                case 1:
                {
                    SendClientMessage(playerid, COLOR_GREEN, "Head threw the Markers to havest the feilds without killing yourselve.");
                    SendClientMessage(playerid, COLOR_YELLOW, "Then drop your load at this shed and receve your payment .");
                    SendClientMessage(playerid, COLOR_YELLOW, "You will need to wait 30 miniutes before you can harvest again .");
                }
                default: return true; //the default need to be added else this function will repeat and repeat :S
            }
        default: return SendClientMessage(playerid, COLOR_YELLOW, "Jobid isnt defined! Please report this to an admin!");
    }
    return SetTimerEx("JobHelp", time, false, "ddd", playerid, time, block + 1);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)