- 0
Problemă Robatm
-
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
Stephen
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul:
//=============================[RobATM]=============================================== if(strcmp(cmd, "/rATM", true) == 0 || strcmp(cmd, "/robatm", true) == 0) { if(IsPlayerConnected(playerid)) { if(!IsPlayerInRangeOfPoint(playerid, 15.0, 1010.8463,-929.3484,42.3281)) { SendClientMessage(playerid, COLOR_YELLOW, " Nu esti la bancomatul LGN!"); return 1; } if(robbing[playerid] == 1) { SendClientMessage(playerid, COLOR_GREEN, " Ai jefuit deja bancomatul!"); return 1; } if(alreadyrobbed[playerid] == 1) { SendClientMessage(playerid, COLOR_YELLOW, "Bancomatul a fost deja spart! Asteapta inca o ora!"); return 1; } else { SendClientMessage(playerid, COLOR_GREEN, "Ai spart bancomatul si ai primit 50.000$! Scapa de copoi cat de repede poti!"); WantedLevel[playerid] = 10; robbing[playerid] = 1; GivePlayerMoney(playerid, 50000); } } return 1; }new robbing[MAX_PLAYERS]; new alreadyrobbed[MAX_PLAYERS]; new Robbed[MAX_PLAYERS]; new RobbedTime[MAX_PLAYERS]; Robbed[playerid] = 0; RobbedTime[playerid] = 0; if(Robbed == 1) { if(RobbedTime <= 0) { RobbedTime = 0; Robbed = 0; } else { RobbedTime -= 1; } }Imagini / Video (optional): -
Aţi încercat să rezolvaţi singur?: Desigur.
9 answers to this question
Recommended Posts