18.12.2010, 02:07
Hey people! I would like to change my script to more time instead of two minutes. I am not sure how long is 10 mins
changed too
Код:
/*if(strcmp(cmd, "/robbank", true) == 0 || strcmp(cmdtext, "/ro", true) == 0) { new suspect = GetClosestPlayer(playerid); if (!PlayerToPoint(5.0, playerid, 2309.8564,-13.7387,26.7422)) { SendClientMessage(playerid, COLOR_LIGHTRED, "You are not around the bank!"); return 1; } if(robtime > 1) { format(string, sizeof(string), "The Bank has recently been robbed please wait [%d]", robtime); SendClientMessage(playerid,COLOR_LIGHTRED,string); return 1; } if (robbed == 1) { SendClientMessage(playerid, COLOR_YELLOW, "someone is already attempting to rob the bank please wait."); return 1; } if (playerrobbing[playerid] == 1) { SendClientMessage(playerid,COLOR_LIGHTRED, "You are already attempting to rob the bank please wait."); return 1; } if (GetPlayerWeapon(playerid) <= 1) { SendClientMessage(playerid, COLOR_LIGHTRED, "You must have a weapon to rob the bank"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessage(playerid,COLOR_LIGHTRED,"You need to stay in this area for atleast 2minutes."); format(string, sizeof(string), "HQ:(( %s is attempting to rob the bank get there as soon as you can ))", sendername); SendFamilyMessage(1, COLOR_DBLUE, string); robbed = 1; RobTimer[playerid] = 120; rob[playerid] =SetTimerEx("RobDone", 1000, 1, "d", playerid); playerrobbing[playerid] = 1; return 1; }*/
Код:
/*if(strcmp(cmd, "/robbank", true) == 0 || strcmp(cmdtext, "/ro", true) == 0) { new suspect = GetClosestPlayer(playerid); if (!PlayerToPoint(5.0, playerid, 2309.8564,-13.7387,26.7422)) { SendClientMessage(playerid, COLOR_LIGHTRED, "You are not around the bank!"); return 1; } if(robtime > 1) { format(string, sizeof(string), "The Bank has recently been robbed please wait [%d]", robtime); SendClientMessage(playerid,COLOR_LIGHTRED,string); return 1; } if (robbed == 1) { SendClientMessage(playerid, COLOR_YELLOW, "someone is already attempting to rob the bank please wait."); return 1; } if (playerrobbing[playerid] == 1) { SendClientMessage(playerid,COLOR_LIGHTRED, "You are already attempting to rob the bank please wait."); return 1; } if (GetPlayerWeapon(playerid) <= 1) { SendClientMessage(playerid, COLOR_LIGHTRED, "You must have a weapon to rob the bank"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessage(playerid,COLOR_LIGHTRED,"You need to stay in this area for atleast 10 minutes."); format(string, sizeof(string), "HQ:(( %s is attempting to rob the bank get there as soon as you can ))", sendername); SendFamilyMessage(1, COLOR_DBLUE, string); robbed = 1; RobTimer[playerid] = 1000; rob[playerid] =SetTimerEx("RobDone", 1000, 1, "d", playerid); playerrobbing[playerid] = 1; return 1; }*/