![]() |
Event Kick System Proplem
Hello Guys, I am it Nogross, and I have a little proplem.. I want to make a kick system which works in the specified Event level.. It don't work so please help me, it should work so:
ET says /kick - then he as to click a player and the player cordinates will be changed. PHP Code:
Thanks anyway! NG |
PHP Code:
|
Quote:
It's the first time I do something with mouse so could you explain me that please ^.^ ? |
Are you posting the full code?
You have a triggerserver in your code. PHP Code:
|
It's the full code yes.. since I'm a really really new coder, I don't really know how to use it, I mean triggerserver. But could you explain me the triggeraction and how to use it? That would be great.
|
I imagine this is what you're going for, I've re-factored your code below. You could create a class called:
events_commands PHP Code:
PHP Code:
|
Thank you fowl, I learned much in youre code. Ty again. I understand all except the part with actionkickplayer wouldnt it be easier to add just a if (...) at func playerchats?
|
The kickplayer function you are wondering about is quite easy. It is a player made function primarily for that NPC. Example...
PHP Code:
You can now use that function throughout your script. |
xD i know i meant something else... I dont understand why its not easier to add just a if (...) at the playerchat func
|
Quote:
It should be on both (server and client) sides. PHP Code:
|
Quote:
|
Just to point out something obvious, you really should create an array of the players in mouse range first and do a single trigger with that array instead of a trigger for each player
|
| All times are GMT +2. The time now is 01:12 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.