![]() |
Problem with guilds
Ok , my script does not work , here is :
PHP Code:
Thank you for your future help :) |
You have two //#CLIENTSIDE lines.
You are using gs1 in the onWeaponFired part. Remove this.. Quote:
|
Thanks , it work but
PHP Code:
|
Quote:
triggerserver(type, name, params) Also it's unneccessary to send clientr. prefixed vars to the server, since it can read clientr. vars there. Try PHP Code:
PHP Code:
|
But i can't add prefix to name?
|
Quote:
|
Oh i ses , but how to add prefix on a name?
|
Ah I get it now... You want to set a rank prefix in front of the player's name. I.e:
King, fowlplay4 (Guild) Here's a function that would do that: PHP Code:
PHP Code:
|
My flags are clientr.towntag for the Town (ex : vaxxo) and clientr.towntagrank for the player rank.
I replace guild_tag by clientr.towntag ? What's the final script if the player say /tag , i'm confused :s |
Quote:
You may benefit from reading my scripting guide, particularly the section on functions. fowlplay4's scripting guide: functions I've pretty much given you the solution to your problem in my last post, you just need to piece it together now. |
Thanks it work !
(and good wiki ;)) |
New problem , i make a tool for king of a town , my flags does not work , if i say /add , it's say it work ! but i not got xen tag !
PHP Code:
does not work :( |
First, you never want functions to be inside any if-blocks*. The checks you did for the towntag and the townrank should be inside the function.
PHP Code:
PHP Code:
PHP Code:
Instead, you want to change it so it checks if the player is saying "/add" before checking their tag and tagrank. I'm also combining the rank and tag check into one statement: PHP Code:
* This doesn't apply to anonymous functions, but don't worry about them yet. |
| All times are GMT +2. The time now is 09:14 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.