![]() |
Weapon Attr's Serverside to Clientside
Umm shouldn't this work???
PHP Code:
Even tried first to do this.attr[1] but it didn't read thats when i used findweapon... but i can read the attr serverside... This is supposed to work does it not? |
Quote:
|
Quote:
for now i suppose i'll use a player.attr unless anyone has a better CLEANER way of doing this (For future improvements then...) Err yeah come to think of it ... if they weapons have images and x,y positions, even though they are 0, they should have attributes |
would be nice if you could add attr's and strings to an weapon like you can with a dbnpc, like making a sword named "Swords/Test" in the weapon list
and in weapons list you could right click and it pops up a menu with like "Edit Weapon/Gui Flags" and "Edit Weapon/Gui Script" and double left click would default open the script and a new button could appear like server flags but, like an guitreeviewctrl like: -Weapons -Swords/Test -weapon.name=Test Sword -weapon.description=A mighty test sword. -more weapons etc... and you could like load the current weapon. strings in the current weapon/gui script, like in Swords/Test you could do like temp.info = {weapon.name, weapon.description}; and it returned temp.info = {"Test Sword", "A mighty test sword."}; ^-- clientside, if the weapon. string doesn't exist, it gives a error message in the rc window Serverside you can do like temp.stuff = findweapon("Swords/Test").loadVar(description); would return: temp.stuff = "A mighty test sword." because it would look for weapon.description, and you can load the current weapon. strings of the current weapon serverside to, etc.. I just wrote this, I thought this would be a good idea or something, I am thinking that I am writing this in the wrong thread/forum part but I don't know if this is a good idea or not.. |
PHP Code:
|
*SMACK* Never!!! ew ... i'll never resort to that i entirely refuse.....
|
Quote:
|
would be funny to do like:
PHP Code:
|
LoL thats what i said =p i tried that first just to check lol my client didnt come close to crashing though lol
I just saved it to like the last player attr.... 29... but i would really like a better way to handle this and maybe , like cheetos brought up a good point, stefan should add lower level access like better socket support... would help A LOT |
HTML Code:
function onActionServerside() |
Gotta try that! :p
I gotta try that :p
so my client don't get funny >_< or weird, lol |
Quote:
Again not gonna do that ... lol don't want to have to client - server - client .... ew and i refuse |
hmm, would be cool too break through serverside from clientside and vice versa
liek: PHP Code:
|
Quote:
|
Quote:
|
hm
|
Quote:
|
I would say server-client side is like dark and light side..
well, would be more cool if you could decide if an command went serverside, like doing move on clientside, and show for all players and etc.. or doing play clientside and all players in the level could hear.. or something like that :o |
| All times are GMT +2. The time now is 01:11 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.