?|
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; } } } |
|
Originally Posted by BSMan
not 100% sure it works, i wrote it now. so check it and ask for more questions if u have
|
if(!strcmp("/jobhelp", cmdtext, true))
return JobHelp(playerid, 5000, 0);
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);
}