Can someone help me with this thing. :/
#6

Quote:

CMD:robbank(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(robbing[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " You are already robbing the bank, please slow down");
return 1;
}
if(alreadyrobbed[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "You already robbed the bank! Wait 1 hour.");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid, 5.0, 2308.8071,-13.2485,26.7422)) // Change X Y Z to the location you want
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the bank !");
return 1;
}
SendClientMessage(playerid, COLOR_WHITE, " You started to rob the bank, This will take 10 minutes");
SetTimerEx("bankrob", 600000, false, "i", playerid);
robbing[playerid] = 1;
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
SendClientMessageToAll(COLOR_WHITE, " The bank is currently getting robbed.");
SendClientMessageToAll(COLOR_WHITE, " We are currently waiting for the cops");
SendClientMessageToAll(COLOR_WHITE, " We will report more when we get more information");
SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
}
return 1;
}

Edit.
Reply


Messages In This Thread
Can someone help me with this thing. :/ - by ToiletDuck - 25.04.2012, 02:20
Re: Can someone help me with this thing. :/ - by Azazelo - 25.04.2012, 02:29
Re: Can someone help me with this thing. :/ - by ToiletDuck - 25.04.2012, 02:33
Re: Can someone help me with this thing. :/ - by Azazelo - 25.04.2012, 02:42
Re: Can someone help me with this thing. :/ - by ToiletDuck - 25.04.2012, 02:43
Re: Can someone help me with this thing. :/ - by Azazelo - 25.04.2012, 02:48
Re: Can someone help me with this thing. :/ - by ToiletDuck - 25.04.2012, 02:57
Re: Can someone help me with this thing. :/ - by ToiletDuck - 25.04.2012, 03:07
Re: Can someone help me with this thing. :/ - by Ballu Miaa - 25.04.2012, 06:05

Forum Jump:


Users browsing this thread: 1 Guest(s)