public bombarobban(){CreateExplosion(2144.1455,1626.3297,993.6882,0,2.0);MoveDynamicObject(bankajto,2145.5, 1629.8, 992.59998, 10.0, 90, 155.342,30.0);for(new i = 0; i < MAX_PLAYERS; i++){if(PlayerInfo[pMember] == 20 || PlayerInfo[pLeader] == 20){SendRadioMessage(20, COLOR_LIGHTGREEN, \"[bankrablás]A páncélajtó felrobbant!\");}}return 1;}
public bankvissza(){DollahScoreUpdate();if(KivanRabolva == 1){ KivanRabolva = 0;MoveDynamicObject(bankajto,2145.5, 1629.8, 992.59998, 10.0, 90, 155.342,30.0); }}
public elegvolt(playerid){SetTimer(\"bankvissza\", 5000, false); robujra = 60*1; KivanRabolva = 1; Rabol[playerid] = 0;ClearAnimations(playerid);TogglePlayerControllable(playerid, 1);KillTimer(RobTimer[playerid]);ClearAnimations(playerid);new robpenz =(random(30000-100)+30000); SafeGivePlayerMoney(playerid,robpenz); PlayerInfo[playerid][Penz] += robpenz;varoskassza -= robpenz;Savevaroskassza();format(stringx, sizeof(stringx),\"[bankrablás]Tele pakoltad a táskádat! A zsákmány %d$.\",robpenz);SendClientMessage(playerid, COLOR_LIGHTGREEN, stringx);new nev[32];GetPlayerName(playerid, nev, sizeof(nev));format(stringx, sizeof(stringx), \"* %s tele pakolta a táskát.\", nev);ProxDetector(30.0, playerid, stringx, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);SetPlayerChatBubble(playerid, \"tele pakolta a táskát\", COLOR_PURPLE, 80.0, 10000);new h,mi,s,y,m,d;getdate(y,m,d);gettime(h,mi,s);format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] [bankrablás] %s kirabolta a bankot, keresett %d$-t\",y,m,d,h,mi,s,nev,robpenz);LoOoG(stringx);if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20){SendRadioMessage(20, COLOR_LIGHTRED, \"[bankrablás]: Tele raktad a táskát pénzzel.\");}return 1;}public felsegittimer(playerid){
bankajto = CreateDynamicObject(2634, 2144.2, 1627.1, 994.28003, 0, 0, 180);
public bombarobban(){ CreateExplosion(2144.1455,1626.3297,993.6882,0,2.0); MoveDynamicObject(bankajto,2145.5, 1629.8, 992.59998, 10.0, 90, 155.342,30.0); for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[pMember] == 20 || PlayerInfo[pLeader] == 20) { SendRadioMessage(20, COLOR_LIGHTGREEN, \"[bankrablás]A páncélajtó felrobbant!\"); } } return 1;}Ez az amikor vissza kéne tegye a bankajtót a helyéreKód: Pawnpublic bankvissza(){ DollahScoreUpdate(); if(KivanRabolva == 1) { KivanRabolva = 0; MoveDynamicObject(bankajto,2145.5, 1629.8, 992.59998, 10.0, 90, 155.342,30.0); }}
public bankvissza(){ DollahScoreUpdate(); if(KivanRabolva == 1) { KivanRabolva = 0; MoveDynamicObject(bankajto,2144.2, 1627.1, 994.28003, 0, 0, 180); }}
public bombarobban(){ CreateExplosion(2144.1455,1626.3297,993.6882,0,2.0); MoveDynamicObject(bankajto,2145.5, 1629.8, 992.59998, 10.0, 90, 155.342,30.0); for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[pMember] == 20 || PlayerInfo[pLeader] == 20) { SendRadioMessage(20, COLOR_LIGHTGREEN, \"[bankrablás]A páncélajtó felrobbant!\"); } } return 1;}public elegvolt(playerid){SetTimer(\"bankvissza\", 5000, false); robujra = 60*1; KivanRabolva = 1; Rabol[playerid] = 0;ClearAnimations(playerid);TogglePlayerControllable(playerid, 1);KillTimer(RobTimer[playerid]);ClearAnimations(playerid);new robpenz =(random(30000-100)+30000); SafeGivePlayerMoney(playerid,robpenz); PlayerInfo[playerid][Penz] += robpenz;varoskassza -= robpenz;Savevaroskassza();format(stringx, sizeof(stringx),\"[bankrablás]Tele pakoltad a táskádat! A zsákmány %d$.\",robpenz);SendClientMessage(playerid, COLOR_LIGHTGREEN, stringx);new nev[32];GetPlayerName(playerid, nev, sizeof(nev));format(stringx, sizeof(stringx), \"* %s tele pakolta a táskát.\", nev);ProxDetector(30.0, playerid, stringx, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);SetPlayerChatBubble(playerid, \"tele pakolta a táskát\", COLOR_PURPLE, 80.0, 10000);new h,mi,s,y,m,d;getdate(y,m,d);gettime(h,mi,s);format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] [bankrablás] %s kirabolta a bankot, keresett %d$-t\",y,m,d,h,mi,s,nev,robpenz);LoOoG(stringx);if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20){SendRadioMessage(20, COLOR_LIGHTRED, \"[bankrablás]: Tele raktad a táskát pénzzel.\");}return 1;}public bankvissza(){DollahScoreUpdate();if(KivanRabolva == 1){KivanRabolva = 0;MoveDynamicObject(bankajto,2144.2, 1627.1, 994.28003, 0, 0, 180, 30.0);}}