![]() |
[Help]Hat weapon
Hello everybody , i'm new to GS2 and i try to make simple scripts for my server. I have started a hat weapon but it not work :/
Who can re-make it? PHP Code:
|
Sorry , thanks to ninja nuhamo for helped me IG
|
I guess you solved your problem but for thread completion sake...
In GS2 you have to use double-quotes on strings (text). I.e: player.attr[1] = "mattsmask1.png"; You should also get in the habit of indenting your scripts. I.e: PHP Code:
PHP Code:
|
Since a lot of people have problems with sethat and so on, here is a script for the sethat command. Ik this is not your request but maybe it will help people in the future:
PHP Code:
|
Quote:
PHP Code:
|
Quote:
|
You can also like add some funk to the hat adding script.
PHP Code:
and make this.hat in a script be the hats imagename. If you want it as a class for easy use just ask me ;) |
Hm, you could definitely try this
//#PRETEND_UR_SMART function {Make hat work .... *runs* |
Quote:
PHP Code:
Quote:
|
| All times are GMT +2. The time now is 08:44 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.