Raised This Month: $ Target: $400
 0% 

personal profiles on a server?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 12-30-2005 , 16:38  
Reply With Quote #2

It is usually best to use arrays in order to accomplish this. Then you would tell the plugin to give the person with the badge the item but nobody else.
Seeing that I have a poor attention span, i will explain it rather than code it.
You will need an array that will store the players id (userid, steamid, etc...) (one of those). Then, you will need a for loop to check all of the indices and an if statement in the for loop to see if they have the badge. If they do, continue giving item, if they do not, go to the next index.
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode