Raised This Month: $ Target: $400
 0% 

One array for one player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LynX
Veteran Member
Join Date: Oct 2004
Old 05-21-2005 , 14:51   One array for one player
Reply With Quote #1

I would like to create an array for only one person. How can I do this. Like this
Code:
 new OnePersonArray[1]
, or?
And, after I set it on one person, it will be like their own id which I can use in any function ,right? Thnx ^^
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-21-2005 , 14:55  
Reply With Quote #2

Code:
public myFunc(id) {     new OnePersonArray[32]     new player = OnePersonArray[id] }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 05-21-2005 , 15:32  
Reply With Quote #3

Lol ^^
If I do it like this, would I be able to set all the data on player who has that array in other public functions ( like its offsets, health, speed, origin, etc ) ?
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-21-2005 , 16:40  
Reply With Quote #4

Make it global.
Code:
new OnePersonArray[32] public myFunc(id) {     new player = OnePersonArray[id]     myFunc2(player) } public myFunc2(player) {     set_user_health(player,100) }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 05-22-2005 , 09:32  
Reply With Quote #5

Thnx v3x
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-22-2005 , 10:12  
Reply With Quote #6

Make the array size 33*
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply



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 05:57.


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