Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMMAND:gpadetibomba(playerid, params[])
- {
- if(playerDB[playerid][specialybe] == 40 || playerDB[playerid][admin] >= 4)
- {
- SendClientMessage(playerid, -1, ""COL_USAGE"[NAUDOJIMAS]: "COL_CMD"/gpadetibomba - turite būti banke vartų, kitaip bomba nepasidės");
- if(IsPlayerInRangeOfPoint(playerid, 5.0, 1249.3025,-902.0074,1088.1438))
- {
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, RED, "* Mašinoje sėdint bombos padėti neymanoma!");
- {
- if(BankoBombaPadeta == 1) return SendClientMessage(playerid, -1, ""COL_ERROR"[KLAIDA]: {FFFFFF} Banke bomba jau padėta!");
- {
- if(BankasApiplestas == 1) return SendClientMessage(playerid,0x0CA919AA,"New-York.us.lt bankas: {999999}Bankas jau apiplėštas!");
- {
- {
- SendClientMessage(playerid, -1, ""COL_ERROR"[Bomba]: {ffffff}Jūs padėjote bomba ant banko seifo!");
- SendClientMessage(playerid, -1, ""COL_ERROR"[Bomba]: {ffffff}Ji sprogs po 20 minučių!");
- SetTimer("BankasPlesiamas1", 5000, false);
- new id;
- playerDB[id][padejobomba] = true;
- new String[280];
- format(String, sizeof(String),"{FF0000}[Mafijos veiksmas !]: {ffffff} Padėta bankę, jis sprogs už 20min , saugokime kad policija neišminuotų !");
- SendMessageToGenovese(-1, String);
- format(String, sizeof(String),"{FF0000}[Operatorė]: {ffffff} Bomba padėta banke ! ji sprogs už 20min, galite išminuoti su /bnuimti !");
- SendMessageToBendraTeisesauga(-1, String);
- BankoBombaPadeta = 1;
- }
- return 1;
- }
- }
- }
- }
- }
- return 1;
- }
- forward BankasPlesiamas1(playerid);
- public BankasPlesiamas1(playerid)
- {
- if(playerDB[playerid][padejobomba])
- {
- TextDrawShowForPlayer(playerid,BG);
- BankoBombaPadeta = 1;
- BankasPlesiamasLaikmatis1[playerid] = SetTimerEx("BankasPlesiamas1", 1000, false, "i", playerid);
- KillTimer(BankasPlesiamasLaikmatis1[playerid]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement