- 0
Problema Rob
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
HasH
Problema intalnita (descriere):Salut , am si eu o problema legata de rob , cand ma duc in banca si dau rob imi apare un mesaj "
You are now robbing the business, wait 10 seconds to take the money!"
Si ramane asa nu se mai intampla nimic stau si o ora si raman blocat
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul
CMD:rob(playerid, params[]) { if(playerVariables[playerid][pWarrants] == 0) { if(playerVariables[playerid][pDonate] == 0) { if(playerVariables[playerid][pRobPoints] >= 10) { if((InBizz[playerid] >= 1) && (GetPlayerVirtualWorld(playerid) - BUSINESS_VIRTUAL_WORLD == InBizz[playerid])) { if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] != 1) { playerVariables[playerid][pRobPoints] -= 10; RobTime[playerid] = 11; SCM(playerid, COLOR_LIGHTBLUE, "You are now robbing the business, wait 10 seconds to take the money!"); playerVariables[playerid][pRob] = 1; TogglePlayerControllable(playerid, 0); playerVariables[playerid][pFreezeTime] = -1; playerVariables[playerid][pFreezeType] = 3; } } } } else if(playerVariables[playerid][pDonate] == 1) { if(playerVariables[playerid][pRobPoints] >= 8) { if((InBizz[playerid] >= 1) && (GetPlayerVirtualWorld(playerid) - BUSINESS_VIRTUAL_WORLD == InBizz[playerid])) { if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] != 1) { playerVariables[playerid][pRobPoints] -= 8; RobTime[playerid] = 11; SCM(playerid, COLOR_LIGHTBLUE, "You are now robbing the business, wait 10 seconds to take the money!"); playerVariables[playerid][pRob] = 1; TogglePlayerControllable(playerid, 0); playerVariables[playerid][pFreezeTime] = -1; playerVariables[playerid][pFreezeType] = 3; } } } } else SendClientMessage(playerid, COLOR_GREY, "You don't have enough rob points."); } else SendClientMessage(playerid, COLOR_GREY, "You can't rob the bank because you are a wanted player."); return 1; }if(RobTime[x] > 0) { RobTime[x]--; if(RobTime[x] == 1) { new house; house = random(systemVariables[houseCount]); SetPlayerCheckpoint(x, houseVariables[house][hHouseExteriorPos][0], houseVariables[house][hHouseExteriorPos][1], houseVariables[house][hHouseExteriorPos][2], 5.0); new randamount; randamount = 50000 * playerVariables[x][pLevel]; RobPrice[x] = randamount; playerVariables[x][pCheckpoint] = 8; SCM(x, COLOR_LIGHTBLUE, "Go to the checkpoint to receive your money!"); new wanted; wanted = random(10); if(wanted == 1) { SCM(x, COLOR_LIGHTBLUE, "The bank employees didn't see your face. You are not wanted!"); } else { playerVariables[x][pWarrants] = 6; format(playerVariables[x][pCrimeReason], 150, "%sarmed robberyn", playerVariables[x][pCrimeReason]); SetPlayerWantedLevel(x, 6); format(szMessage, sizeof(szMessage), "Dispatch: %s (%d) has comitted a crime: armed robbery. Reporter: unknown. W: +6 | New Wanted Level: %d", playerVariables[x][pNormalName], x,playerVariables[x][pWarrants]); sendDepartmentMessage(COLOR_RADIOCHAT, szMessage); } SetPlayerAttachedObject(x, 2, 1550, 1, -0.004022, -0.191353, -0.034982, 158.161407, 87.838058, 0.000000, 1.000000, 1.000000, 1.000000 ); playerVariables[x][pFreezeTime] = 0; playerVariables[x][pFreezeType] = 0; TogglePlayerControllable(x, 1); } }16 answers to this question
Recommended Posts