/robbank help =] -
Karl115 - 31.05.2010
I need help : i got this script:
public RobBank(playerid)
{
new string[128];
if(IsPlayerInRangeOfPoint(playerid, 2, 2309.6060,-4.0211,26.7422))
{
if(RobbingTime[playerid] > 0)
{
RobbingTime[playerid] --;
GameTextForPlayer(playerid, "~w~Remain in the ~r~Pickup ~w~until the time ends!", 1000,4);
}
else
{
RobbingTime[playerid] = 0;
KillTimer(RobBankTimer);
SetPlayerCheckpoint(playerid, 43,1544.3834,17.3083,24.1406);
new money = random(34555);
SafeGivePlayerMoney(playerid, money);
format(string, sizeof(string),"~w~You Robbed ~g~$%d ~w~From the ~y~Bank!", money);
GameTextForPlayer(playerid, string, 6000, 4);
format(string, sizeof(string),"* Congraz You robbed $%d From the Bank!",money);
SendClientMessage(playerid, COLOR_GREY, string);
WantedPoints[playerid] = 2;
SetPlayerCriminal(playerid,255, "Robbing the Bank");
}
Why didn't i put in quote yet??
Check the red line the checkpoint thing...
Код:
public RobBank(playerid)
{
new string[128];
if(IsPlayerInRangeOfPoint(playerid, 2, 2309.6060,-4.0211,26.7422))
{
if(RobbingTime[playerid] > 0)
{
RobbingTime[playerid] --;
GameTextForPlayer(playerid, "~w~Remain in the ~r~Pickup ~w~until the time ends!", 1000,4);
}
else
{
RobbingTime[playerid] = 0;
KillTimer(RobBankTimer);
SetPlayerCheckpoint(playerid, 43,1544.3834,17.3083,24.1406);
new money = random(34555);
SafeGivePlayerMoney(playerid, money);
format(string, sizeof(string),"~w~You Robbed ~g~$%d ~w~From the ~y~Bank!", money);
GameTextForPlayer(playerid, string, 6000, 4);
format(string, sizeof(string),"* Congraz You robbed $%d From the Bank!",money);
SendClientMessage(playerid, COLOR_GREY, string);
WantedPoints[playerid] = 2;
SetPlayerCriminal(playerid,255, "Robbing the Bank");
}
I have tryed for about an hour to do this: i want that when you type /robbank you wait for 95 seconds after the 95 seconds some one tells you go to the checkpoint to get your money.
The problem is that : when you do /robbank you wait 95 seconds you get your money and then the checkpoint comes.. so i want to change it : /robbank // wait 95 seconds // go to check point // get an ammount of money max: 34555$
Re: /robbank help =] -
Karl115 - 31.05.2010
Can any one help me do it ?? add me msn if you can
Msn: khibs@hotmail.com
Skype: khibs11
Re: /robbank help =] -
ipsBruno - 31.05.2010
I am Brazilian not quite understand
pawn Код:
public RobBank(playerid)
{
new string[128];
if(IsPlayerInRangeOfPoint(playerid, 2, 2309.6060,-4.0211,26.7422))
{
if(RobbingTime[playerid] > 0)
{
RobbingTime[playerid] --;
GameTextForPlayer(playerid, "~w~Remain in the ~r~Pickup ~w~until the time ends!", 1000,4);
}
else
{
RobbingTime[playerid] = 0;
KillTimer(RobBankTimer);
SetTimer("RobBankCP",true,360000)//360000= Temp In Miliseconds
new money = random(34555);
SafeGivePlayerMoney(playerid, money);
format(string, sizeof(string),"~w~You Robbed ~g~$%d ~w~From the ~y~Bank!", money);
GameTextForPlayer(playerid, string, 6000, 4);
format(string, sizeof(string),"* Congraz You robbed $%d From the Bank!",money);
SendClientMessage(playerid, COLOR_GREY, string);
WantedPoints[playerid] = 2;
SetPlayerCriminal(playerid,255, "Robbing the Bank");
}
Final GM/FS:
pawn Код:
forward RobBankCP(playerid);
public RobBankCP(playerid)
{
SetPlayerCheckpoint(playerid, 43,1544.3834,17.3083,24.1406);
return 1;
}
Re: /robbank help =] -
Karl115 - 31.05.2010
it don't work thanks any way sir