![]() |
playerisrc...
I am thinking this may be moved to NPC Server, but o well...
I am using this: NPC Code: As we all know with(allplayers[i]) returns even for rcs, hence allplayers...However I need detection to see if the current selection is on rc or not. How would you all go about this? I tried #L thinking it might be null, but fail...It equals the last level. |
Re: playerisrc...
Quote:
if (strcontains(#a,"pw name here")||strcontains(#a,RC)) { |
Re: Re: playerisrc...
Quote:
|
Re: Re: playerisrc...
Quote:
|
You could try checking to see if a player just logged on who isn't in a level, since RCs aren't supposed to be in levels.
Also, #L is the NPCs level, #F is the player's level. |
if your trying to get a players count you could try....
NPC Code: you could put it in a system npc..and if the rc isnt on the playeraccount it shouldnt get counted |
Re: Re: Re: playerisrc...
Quote:
|
Jagen: If you want this to work ONLY for RCs, use if (strlen(#F)<=0) It'll run the script if the player level's length is less than or equal to 0 (which is RC) |
Quote:
You know jagen...you really should give the credit to stefan. we were too bloody thick to think of that until we asked him about how to make the addweapon code quit working on RCs. |
Quote:
You couldn't think about using that either :p |
Jagen:
I did say "we" not "you" Kai: Stefan said <=, and it's not that much harder to type than ==, so.. |
Quote:
<=0 means nothing or absolute nonexistance. Stefan must have reckoned that there might just be a plain nothing when you #F a withed rc. But == and <= work just the same since there can't be -1 characters, so what does it matter? |
Quote:
Well not for strlen, but that isn't my point. |
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 07:14 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.