if( BSZDolgozik[ playerid ] > 0 && pInfo[playerid][nmunka] == 50 && IsPlayerInRangeOfPoint(playerid, 10,284.2151,1384.2626,11.1539)) { if(IsPlayerInRangeOfPoint(playerid, 10,284.2151,1384.2626,11.1539)) { if(vInfo[vid][job] != 50) return SendClientMessage( playerid, PIROS, \"Nem vagy a megfelelő járműben!\" ); TogglePlayerControllable(playerid, 0); cmd_me(playerid, \"feltölti a tartályt!\"); SendClientMessage(playerid, NARANCS, \"Elkezdted a tankolást a tartályba! 0/500 L\"); BszalitoTimer[playerid] = SetTimerEx(\"BTimer\", 10000, false, \"d\", playerid); DisablePlayerCheckpoint( playerid ); } if(IsPlayerInRangeOfPoint(playerid, 10,-1293.7725,2702.7573,50.0625)) { if(vInfo[vid][job] != 50) return SendClientMessage( playerid, PIROS, \"Nem vagy a megfelelő járműben!\" ); TogglePlayerControllable(playerid, 0); cmd_me(playerid, \"feltölti a tartályt!\"); SendClientMessage(playerid, NARANCS, \"Elkezdted a tankolást a fő tartályba!\"); BszalitoTimer[playerid] = SetTimerEx(\"BTimer\", 10000, false, \"d\", playerid); DisablePlayerCheckpoint( playerid ); } }
if(BSZDolgozik[playerid] > 0 && pInfo[playerid][nmunka] == 50)){if(IsPlayerInRangeOfPoint(playerid, 10,284.2151,1384.2626,11.1539) || (IsPlayerInRangeOfPoint(playerid, 10,-1293.7725,2702.7573,50.0625)){ if(vInfo[vid][job] != 50) return SendClientMessage(playerid, PIROS, \"Nem vagy a megfelelő jármuben!\"); TogglePlayerControllable(playerid, 0); cmd_me(playerid, \"feltölti a tartályt!\"); SendClientMessage(playerid, NARANCS, \"Elkezdted a tankolást a tartályba!\"); BszalitoTimer[playerid] = SetTimerEx(\"BTimer\", 10000, false, \"d\", playerid); DisablePlayerCheckpoint(playerid); return true;}SendClientMessage(playerid, PIROS, \"Nem vagy a megfelelő helyen!\");}
if( BSZDolgozik[ playerid ] > 0 && pInfo[playerid][nmunka] == 50 && IsPlayerInRangeOfPoint(playerid, 10,284.2151,1384.2626,11.1539)) { if(vInfo[vid][job] != 50) return SendClientMessage( playerid, PIROS, \"Nem vagy a megfelelő járműben!\" ); TogglePlayerControllable(playerid, 0); cmd_me(playerid, \"feltölti a tartályt!\"); SendClientMessage(playerid, NARANCS, \"Elkezdted a tankolást a tartályba! 0/500 L\"); BszalitoTimer[playerid] = SetTimerEx(\"BTimer\", 10000, false, \"d\", playerid); DisablePlayerCheckpoint( playerid );} if( BSZDolgozik[ playerid ] > 0 && pInfo[playerid][nmunka] == 50 && IsPlayerInRangeOfPoint(playerid, 10,-1293.7725,2702.7573,50.0625)) { if(vInfo[vid][job] != 50) return SendClientMessage( playerid, PIROS, \"Nem vagy a megfelelő járműben!\" ); TogglePlayerControllable(playerid, 0); cmd_me(playerid, \"feltölti a tartályt!\"); SendClientMessage(playerid, NARANCS, \"Elkezdted a tankolást a fő tartályba!\"); BszalitoTimer[playerid] = SetTimerEx(\"BTimer\", 10000, false, \"d\", playerid); DisablePlayerCheckpoint( playerid ); }
public BTimer(playerid){new rand,S[256];if(BSZDolgozik[playerid] > 0 && IsPlayerInRangeOfPoint(playerid, 10,284.2151,1384.2626,11.1539 )){format(S, sizeof(S), \"{FFFFFF}Feltölted az üzemanyag tartályt!\\nMennyiség: {269BD9}%03d{FFFFFF}\\nHova: {269BD9}El Quebrados{FFFFFF}\\nNév: {269BD9}%s{FFFFFF}\\n\", (rand = random(1000000) + random(9999999 - rand)), pName(playerid));//SendClientMessage(playerid, NARANCS, S);ShowPlayerDialog(playerid,9934,DIALOG_STYLE_MSGBOX,\"{269BD9}Baltrans{808080} - {FFFFFF}Kft\",S,\"Rendben\",\"\");//playerid, cmds, DIALOG_STYLE_MSGBOX,SetPlayerCheckpoint ( playerid, -1293.7725,2702.7573,50.0625, 5.0 );TogglePlayerControllable(playerid, 1);KillTimer(BszalitoTimer[playerid]);}if(BSZDolgozik[playerid] > 0 && IsPlayerInRangeOfPoint(playerid, 10,284.2151,1384.2626,11.1539 )){format(S, sizeof(S), \"{FFFFFF}Feltölted az üzemanyag tartályt\\nFizetésed: {269BD9}%d Ft{FFFFFF}\\nNév: {269BD9}%d{FFFFFF}\\n\",GetSimaFizu(13), pName(playerid));//SendClientMessage(playerid, NARANCS, S);ShowPlayerDialog(playerid,9934,DIALOG_STYLE_MSGBOX,\"{269BD9}Baltrans{808080} - {FFFFFF}Kft\",S,\"Rendben\",\"\");//playerid, cmds, DIALOG_STYLE_MSGBOX,SetPlayerCheckpoint ( playerid, -1293.7725,2702.7573,50.0625, 5.0 );TogglePlayerControllable(playerid, 1);KillTimer(BszalitoTimer[playerid]);}