![]() |
If (playerenters) and is second player to enter? [help]
:blush:i'm kinda lost here..Okay so im making this event and i want to make where when the first player enters he goes to a pacific location.. like this script below..
PHP Code:
Please Help :) p.s. please forgive me on my bad grammer :blush: |
You can use variables to set if there is a player in there for instance you could try something such as this: (I am also coding this in GS2 not GS1 as it is outdated)
PHP Code:
|
Quote:
|
An easier more efficient approach would be to create a multi-dimensional array of warp coordinates:
PHP Code:
PHP Code:
|
Quote:
|
This should help.
PHP Code:
|
Quote:
A simple method to kick all players would be to loop through the built-in 'players' array. One way of looping through the array would be: PHP Code:
Variables which start with the 'temp.' prefix are simply temporary values. Another would be: PHP Code:
|
Quote:
PHP Code:
|
My Sinario
Thanks So Much! Everyone. ^_^ um do you want to see my event? its fun...^^......but the last thing I'm having trouble with is removing the the players weapon once it leaves the event..or wait let me explain the much more clearly..
Example/My Situation: I have this simple event. The event has 8 different positons/selections. like the script i was asking for in this thread to begin with. So they enter and my event starts they have daisines and i added inn the daisine script itself. once my player says /kickall it will destroy the daisine..but i had to add this to each individual daisine. but on one of the tracks, its like a trap(the track completely stops i didnt add any more npc tracks to this one specif track section), and once the player hits another npc i made it moves the player y+=1 with a sleep function to make the player actual move...up and hit the warp selection . once he/she hits the warp selection it warps them away to the unstick me level, but the player will steal have the daisine unlike the other plays which i said /lkickall to and removed the weapon, but how do i make it where once the player enters the unstick me level they get the diasine removed? heres what i came up with.. PHP Code:
|
To remove a weapon from a player, use player.removeWeapon(weaponName).
|
Oi tig, I could've benefited from what chris said unless it was out right abuse. Either way, i'm all curious as to what's wrong with the method
findweapon(weaponName).destroy() Please explain? |
Quote:
http://cdn.uploads.graalcenter.org/u...2004:41:24.png |
Quote:
|
Quote:
I'll probably pick up a negative rep or two for the following comment, but it'd be like not allowing immigrants from middle eastern countries in fear of letting in terrorists. |
Quote:
|
Quote:
edit: (when I can...) |
Quote:
|
Quote:
|
Quote:
|
Quote:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
And yeah backups would definitely be best. As for the LAT thing, It would be rather simple to have lat's upload to a folder only they can, and then checked/moved by an admin. It could be simple to script a GS2 checker to see if it uses certain functions by scanning the level as a file first. |
Quote:
|
Agreed ^,^
|
Quote:
|
Quote:
|
Do regular backups and limit write rights off (npcserver). Problem solved.
|
Quote:
|
Quote:
|
Lock Please ^^
Can Someone Lock This Thread Please?
Reason: Got All Help I Needed And No Futher Questions At This Moment ^^ |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Oh i get it lol (the truth is obvisous lol) i spelt that wrong >.<
|
| All times are GMT +2. The time now is 06:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.