if(gTeam[playerid] == TEAM_RABLOK)if (HOLDING(KEY_CROUCH)) if(IsPlayerInRangeOfPoint(playerid, 3, 2842.9126,-2364.3521,31.0039) || IsPlayerInRangeOfPoint(playerid, 3, 2838.3843,-2540.0557,18.2441)) { SendClientMessage(playerid,COLOR_YELLOW,\"Most élesíted a C4-et, maradj nyugton...\"); Rablas = SetTimerEx(\"RablasTimer\",10000,0,\"i\",playerid); KillTimer(Hatastalanit); } else { } else if(RELEASED(KEY_CROUCH)) if(IsPlayerInRangeOfPoint(playerid, 3, 2842.9126,-2364.3521,31.0039) || IsPlayerInRangeOfPoint(playerid, 3, 2838.3843,-2540.0557,18.2441)) { KillTimer(Rablas); } else { } if(gTeam[playerid] == TEAM_VEDOK)if (HOLDING(KEY_CROUCH)) if(IsPlayerInRangeOfPoint(playerid, 3, 2842.9126,-2364.3521,31.0039) || IsPlayerInRangeOfPoint(playerid, 3, 2838.3843,-2540.0557,18.2441)) { if(megvane[playerid] == 1) SendClientMessage(playerid,COLOR_YELLOW,\"Most hatástalanítod a C4-et, maradj nyugton...\"); Hatastalanit = SetTimerEx(\"HatastalanitTimer\",20000,0,\"i\",playerid); } else { } else if(RELEASED(KEY_CROUCH)) if(IsPlayerInRangeOfPoint(playerid, 3, 2842.9126,-2364.3521,31.0039) || IsPlayerInRangeOfPoint(playerid, 3, 2838.3843,-2540.0557,18.2441)) { KillTimer(Hatastalanit); } else { }
forward RobbanasTimer(playerid);public RobbanasTimer(playerid){ SendClientMessageToAll(COLOR_AQUA,\"Felrobbant a bomba!A rakomány megsemmísitve!\"); GameTextForAll(\"~y~TERRORISTÁK GYÕZTEK\", 5000, 1); KillTimer(Rablas); KillTimer(Hatastalanit);}
forward HatastalanitTimer(playerid);public HatastalanitTimer(playerid){ SendClientMessageToAll(COLOR_AQUA,\"Hatástalanították a bombát!A rakomány megvédve!\"); GameTextForAll(\"~y~CTK GYÕZTEK\", 5000, 1); KillTimer(Rablas); KillTimer(Hatastalanit);}
if(gTeam[playerid] == TEAM_RABLOK){if (HOLDING(KEY_CROUCH)) { if(IsPlayerInRangeOfPoint(playerid, 3, 2842.9126,-2364.3521,31.0039) || IsPlayerInRangeOfPoint(playerid, 3, 2838.3843,-2540.0557,18.2441)) return SendClientMessage(playerid,COLOR_YELLOW,\"Nem vagy a megfelelõ helyen!\"); { if(megvane[playerid] == 1) return SendClientMessage(playerid,COLOR_YELLOW,\"Már van lerakva c4!\"); SendClientMessage(playerid,COLOR_YELLOW,\"Most élesíted a C4-et, maradj nyugton...\"); Rablas = SetTimerEx(\"RablasTimer\",10000,0,\"i\",playerid); KillTimer(Hatastalanit); megvane[playerid] = 1; }}else if(RELEASED(KEY_CROUCH)) { if(IsPlayerInRangeOfPoint(playerid, 3, 2842.9126,-2364.3521,31.0039) || IsPlayerInRangeOfPoint(playerid, 3, 2838.3843,-2540.0557,18.2441)) return SendClientMessage(playerid,COLOR_YELLOW,\"Nem vagy a megfelelõ helyen!\"); { KillTimer(Rablas); }}} if(gTeam[playerid] == TEAM_VEDOK){if (HOLDING(KEY_CROUCH)){ if(IsPlayerInRangeOfPoint(playerid, 3, 2842.9126,-2364.3521,31.0039) || IsPlayerInRangeOfPoint(playerid, 3, 2838.3843,-2540.0557,18.2441)) return SendClientMessage(playerid,COLOR_YELLOW,\"Nem vagy a megfelelõ helyen!\"); { if(megvane[playerid] == 0) return SendClientMessage(playerid,COLOR_YELLOW,\"Mit akarsz hatástalanítani hülyegyerek?!\"); SendClientMessage(playerid,COLOR_YELLOW,\"Most hatástalanítod a C4-et, maradj nyugton...\"); Hatastalanit = SetTimerEx(\"HatastalanitTimer\",20000,0,\"i\",playerid); megvane[playerid] = 0; } } else if(RELEASED(KEY_CROUCH)) { if(IsPlayerInRangeOfPoint(playerid, 3, 2842.9126,-2364.3521,31.0039) || IsPlayerInRangeOfPoint(playerid, 3, 2838.3843,-2540.0557,18.2441)) return SendClientMessage(playerid,COLOR_YELLOW,\"Nem vagy a megfelelõ helyen!\"); { KillTimer(Hatastalanit); }}}