Quote:
Originally Posted by Chief149
Ok, there are two things I have noticed. If this is extremely stupid of me to be mentioning this then just say so, plz dont flame tho.
Anyways I am hoping this isnt my fault, but in my server when I try doing !sm_locks, !locks, or /locks when looking at a door nothing happens and it appears that there is no such command for it as typing /locks or something just puts it in chat which indicates that the command doesn't exist. IDK if you are doing more updates to this mod after Krim released his 3.0 or 3.1 rp mod (Which I do not like all too much because it only has the ability to buy one house which is nothing as I can easily fix that. What gets me is with Krims 3.0 plugin when you buy a door and rename it, it renames all the other doors and the other doors say they have been purchased even tho they say for sale. In other words I prefer this mod over Krims 3.0), but it would be nice if that feature of viewing how many locks on a persons door could be added in.
Also lets say I wanted to add something where someone could add 10 locks or 100 locks to their door without having to do /items and click "lock" 10 or 100 times to add locks to their door. I would just use:
/createitem <ID> <Name> <type> <value> <price>
Then for Value I would put say maybe 10 which means that item is 10 locks combined, and for Type I would put 13 obviously as that represents locks.
Is that how I would set that up?
|
Hi Chief & nick
Add this code if you are using nicks mod it will compile correctly in there.
add at the top of rp_main.sp under
//Effects
new g_BeamSprite;
new g_HaloSprite;
new whiteColor[4] = {255, 255, 255, 255};
new greyColor[4] = {128, 128, 128, 255};
Add this code
//Show Locks
public Action:Command_ShowLocks(Client, Args)
{
//Declare:
decl DoorEnt;
decl String:ClassName[255];
//Initialize:
DoorEnt = GetClientAimTarget(Client, false);
//ClassName:
GetEdictClassname(DoorEnt, ClassName, 255);
//Action:
if(DoorEnt > 1)
{
if(StrEqual(ClassName, "func_door") || StrEqual(ClassName, "func_door_rotating") || StrEqual(ClassName, "prop_door_rotating"))
{
PrintToChat(Client, "\x04[RP]\x01 - This Door Has \x04%d\x01 Locks",DoorLocks[DoorEnt]);
}
}
else
{
PrintToChat(Client, "\x04[RP]\x01 No Door Selected.");
}
}
----
Now add this to the Reg's at the bottom of the plugin
RegConsoleCmd("sm_locks", Command_ShowLocks, "Check how many locks on a door.");
Compile using compile.exe
and now u can use !locks while looking at a door to see how many there are
i will post a reply Chief with the Varience on locks/lockbreakers when i can
and nick or anyone feel free to use this in any of your up and coming mods
much love!
[3star]Dazza098
feel free to check out my Roleplay server at
68.232.163.167:27015
[3star] Dazza's US RP