Posts: 39
Threads: 16
Joined: Sep 2013
Hi Guys I'm Working On An RP Server But Got Kinda Stuck :-
I cant find a way on making jobs because the "SetTimer" function Doesn't Work
Can Please Tell Me A way for making jobs and earning money and points
ty
Posts: 64
Threads: 9
Joined: Nov 2013
Reputation:
0
Post your code of that function in SetTimer.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
The SetTimer function works 100% fine.
Posts: 39
Threads: 16
Joined: Sep 2013
Posts: 39
Threads: 16
Joined: Sep 2013
here it is
Quote:
forward CasinoBar(playerid);
new RandomMoney;
CMD:work(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,3,-2655.5090,1406.6702,906.2734))
{
TogglePlayerControllable(playerid,0);
SetPlayerPos(playerid,-2655.5090,1406.6702,906.2734);
SetPlayerFacingAngle(playerid,270);
SetCameraBehindPlayer(playerid);
SetTimer("CasinoBar",10000,false);
}
return 1;
}
public CasinoBar(playerid)
{
RandomMoney = random(20000);
TogglePlayerControllable(playerid,1);
GivePlayerMoney(playerid,RandomMoney);
}
|
Posts: 39
Threads: 16
Joined: Sep 2013