
thedestroyer
Members-
Posts
277 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by thedestroyer
-
Re: Just a simple question heres to add an event but not sure how to add who did it. Will have a look later if no one else tells you event_add($_POST['user'],"You were banned from the (your place) for {$_POST['days']} day(s) for the following reason: {$_POST['reason']}",$c);
-
Re: Avatar Page - My first mod i don't understand whats its supposed to do?
-
Re: Gang Surrender Yes, it proper annoying cause people thinks it's a mod but its not. I helped him now anyway lol
-
Re: Gang Surrender replace it with this if it is v2 function gang_staff_viewsurrenders() { global $db,$ir,$c,$userid,$gangdata; if(!isset($_POST['subm'])) { echo "<form action='yourgang.php?action=staff&act2=viewsurrenders' method='post'> Choose who to accept the surrender from. <input type='hidden' name='subm' value='submit' /> Gang: <select name='sur' type='dropdown'>"; $sql = sprintf( "SELECT s.*, w.* " . "FROM surrenders s " . "LEFT JOIN gangwars w ON (s.surWAR = w.warID) " . "WHERE (surTO = %u)", $ir['gang']); $wq = $db->query($sql); while($r = $db->fetch_row($wq)) { $w = ($gangdata['gangID'] == $r['warDECLARER']) ? "You" : "Them"; $f = ($gangdata['gangID'] == $r['warDECLARER']) ? "warDECLARED" : "warDECLARER"; $SelectGangs = sprintf("SELECT * FROM gangs WHERE (gangID = %u)", $r[$f]); $ggq = $db->query($SelectGangs); $them = $db->fetch_row($ggq); echo sprintf("<option value='%u'>War vs. %s (Msg: %s)</option>", $r['surID'], stripslashes($them['gangNAME']), stripslashes($r['surMSG'])); } echo "</select> <input type='submit' value='Accept Surrender' /></form>"; } else { $_POST['sur'] = abs(@intval($_POST['sur'])); $SelectWar = sprintf("SELECT surWAR FROM surrenders WHERE (surID = %u)", $_POST['sur']); $q = $db->query($SelectWar); if(!$db->num_rows($q)) { echo "Invalid surrender"; $h->endpage(); exit; } $war = $db->fetch_row($q); $SelectGangWars = sprintf("SELECT * FROM gangwars WHERE (warID = %u)", $war['surWAR']); $wq = $db->query($SelectGangWars); if($db->num_rows($wq) == 0) { echo "Invalid Gang"; exit; } $r = $db->fetch_row($wq); $w = ($gangdata['gangID'] == $r['warDECLARER']) ? "You" : "Them"; $f = ($gangdata['gangID'] == $r['warDECLARER']) ? "warDECLARED" : "warDECLARER"; $AcceptSurrender = sprintf("DELETE FROM surrenders WHERE (surID = %u)", $_POST['sur']); $EndWar = sprintf("DELETE FROM gangwars WHERE (warID = %u)", $war['surWAR']); $db->query($AcceptSurrender); $db->query($EndWar); $SelectGang = sprintf("SELECT gangID, gangNAME FROM gangs WHERE (gangID = %u)", $r[$f]); $ggq = $db->query($SelectGang); $them = $db->fetch_row($ggq); $eventage = sprintf("[url='gangs.php?action=view&ID=%u']%s[/url] have accepted the surrender from [url='gangs.php?action=view&ID=%u']%s[/url]. The war is over!", $ir['gang'], $gangdata['gangNAME'], $them['gangID'], $them['gangNAME']); $event = str_replace("'", "''", $eventage); $LogEvent = sprintf("INSERT INTO gangevents VALUES ('', %u, unix_timestamp(), '%s'), ('', %u, unix_timestamp(), '%s')", $ir['gang'], $event, $r[$f], $event); $db->query($LogEvent); echo "You have accepted surrender, the war is over.";
-
Re: Businesses Mod [Mccode V2] you are missing a sql then. Mail me in private for my msn will be easier on there
-
Re: Businesses Mod [Mccode V2] ok add budDebt to the business table with int(11)
-
Re: Businesses Mod [Mccode V2] do u have a sql called busDebt in ya businesses table
-
Re: Businesses Mod [Mccode V2] ok hang on
-
Re: Businesses Mod [Mccode V2] Sorry dont understand can You explain in more detail?
-
Re: Businesses Mod [Mccode V2] yes at the bottom it says bankrupt the business
-
Re: Businesses Mod [Mccode V2] nah and ok hang on
-
Re: Businesses Mod [Mccode V2] hey westy hows it going?
-
Re: Businesses Mod [Mccode V2] dont matter actually
-
Re: Businesses Mod [Mccode V2] do you know how to hide your paypal address when players donate so they cant see where they are donating to?
-
Re: Businesses Mod [Mccode V2] its ok lol
-
Re: Businesses Mod [Mccode V2] IQ mate
-
Re: Businesses Mod [Mccode V2] mines daily mate
-
Re: Businesses Mod [Mccode V2] ok cool
-
Re: Businesses Mod [Mccode V2] ok cya in a bit
-
Re: Businesses Mod [Mccode V2] good
-
Re: Businesses Mod [Mccode V2] put it just below this part in global_func function item_dropdown($connection,$ddname="item",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM items ORDER BY itmname ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['itmid']}'"; if ($selected == $r['itmid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.=">{$r['itmname']}</option>"; } $ret.="\n</select>"; return $ret; }
-
Re: Businesses Mod [Mccode V2] whats wrong with it?
-
Re: Businesses Mod [Mccode V2] I think company specials would be good. I will have a look and see if i can add them. Westy you try too. :-)
-
Re: Businesses Mod [Mccode V2] Ok I have added a new company. It's a football club. Add these sqls INSERT INTO `businesses_classes` ( `classId` , `className` , `classDesc` , `classMembers` , `classCost` ) VALUES ( 6, 'Football Club', 'Lead the way with your team and become the champions.', 10, 12000000 ); INSERT INTO `businesses_ranks` (`rankId`, `rankName`, `rankClass`, `rankCash`, `rankPrim`, `rankSec`, `rankPGain`, `rankSGain`) VALUES (15, 'Referee', 6, 3150, 'labour', 'intel', '15', '10'), (16, 'Player', 6, 3500, 'labour', 'intel', '28', '7'), (17, 'Goal Keeper', 6, 3100, 'labour', 'intel', '25', '7');
-
Re: Businesses Mod [Mccode V2] no probs if you can pls +1 me i have a new company i will add on here in a minute