| Blockland Forums > General Discussion |
| Red_Guy's City RP[G] |
| << < (3/8) > >> |
| Crøwn:
Looks okay, though I don't really like RP core. |
| Gordo12699:
--- Quote from: Ipquarx on May 12, 2012, 10:22:35 PM ---If you need someone to help with scripting, I'm always up for a challenge. --- End quote --- I would greatly appreciate help. PM me so we can get started. |
| Ipquarx:
--- Quote from: Lugnut1206 on May 12, 2012, 10:26:13 PM ---Yeah, you could go at it from that angle too. --- End quote --- The simplest solution is almost always the best, my friend. --- Quote from: Gordo12699 on May 12, 2012, 10:31:31 PM ---I would greatly appreciate help. PM me so we can get started. --- End quote --- Sounds good. It's 10PM here though, so not today though. |
| Gordo12699:
--- Quote from: Lugnut1206 on May 12, 2012, 10:23:17 PM ---What's the function for getting the wanted list? Via police brick? Unzip the entire mod into a directory then search for the police brick. Find the function that gets the wanted list Find where said function is defined Check for variables set (%client.iswanted, for example) Set said variables when /grantdemerits is called. --- End quote --- I'll post some code and see what it works as. --- Code: ---function ServerCmdGrantDemerits(%client, %n0, %n1, %n2, %n3) { if (!$RP::activated) return; if (!%client.isInRP()) return; if (!%client.CheckPrefTrust($RP::pref::server::rankAdvanceCommands)) return; %name = trim(%n0 SPC %n1 SPC %n2 SPC %n3); %target = (%name $= "") ? %client : findClientByText(%name); if (!isObject(%target)) { messageClient(%client, '', "\c6Invalid player."); return; } %target.RPData.value["demerits"] = 0; messageClient(%client, '', '\c6You gave \c3%1\c6\ 100 demerits.', %target.name); messageClient(%target, '', '\c6You are now wanted.', %client.name); CommitCrime(%target, "Angering Badmin", $RP::pref::crime::AngeringBadmin); if (%dems >= 1) AddToCriminalList(%target.getSaveKey()); %target.RPData.value["demerits"] += 0; %target.displayInfo(); } --- End code --- Above is the command and below will be the function of getting the wanted list. Lol in my defense I did not notice this code. --- Code: ---// Add to criminal list function AddToCriminalList(%ID) { $RP::criminalList = addToList($RP::criminalList, %ID); } --- End code --- Also Ipquarx, I will send you a PM tomorrow as you requested |
| Gloss:
-Removed- |
| Navigation |
| Message Index |
| Next page |
| Previous page |