Help for command..
#7

PHP код:
new bool:TakeJobTimer[MAX_PLAYERS];
forward JobTimerplayerid );
YCMD:takejob(playerid,params[],help)
{
if(!
TakeJobTimer)
{
#pragma unused help
#pragma unused params
new id GetJobID(playerid);
if(
id == -1) return SCM(playerid,COLOR_RED,"EROR: "COL_WHITE"There is no any job.");
if( 
P_Data[playerid][pJob] != 0) return SCM(playerid,COLOR_RED,"EROR: "COL_WHITE"You already have job.");
SendFormatMSGplayerid, -1"Now your job is {E0941B}%s"Job[id][Name] );
P_Data[playerid][pJob] = id;
TakeJobTimer true;
SetTimer"JobTimer"3000000false );
}else return 
SendClientMessage(playerid, -1"You must wait 30 minutes before doing another job again!");
return 
1;
}
public 
JobTimer(playerid)
{
   
TakeJobTimer false;
   return 
1;

If i helped you np
Reply


Messages In This Thread
Help for command.. - by dundolina - 26.07.2012, 13:23
Re: Help for command.. - by Cjgogo - 26.07.2012, 13:28
Re: Help for command.. - by dundolina - 26.07.2012, 14:30
Re: Help for command.. - by Captain_Mani - 26.07.2012, 14:38
Re: Help for command.. - by Alexis1999 - 26.07.2012, 14:41
Re: Help for command.. - by dundolina - 26.07.2012, 14:54
Re: Help for command.. - by Kakioshe22 - 26.07.2012, 15:00
Re: Help for command.. - by dundolina - 26.07.2012, 15:05
Re: Help for command.. - by Kakioshe22 - 26.07.2012, 15:08

Forum Jump:


Users browsing this thread: 2 Guest(s)