Roleplay Help
#1

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
Reply
#2

Post your code of that function in SetTimer.
Reply
#3

The SetTimer function works 100% fine.
Reply
#4

ok ..
Reply
#5

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);
}

Reply
#6

pawn Код:
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);
        SetTimerEx("CasinoBar",10000,false,"i",playerid);
    }
    return 1;
}
public CasinoBar(playerid)
{
    RandomMoney = random(20000);
    TogglePlayerControllable(playerid,1);
    GivePlayerMoney(playerid,RandomMoney);
    return 1;
}
You cant use SetTimer for this situation (playerid).
Reply
#7

Thanks Alot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)