Raised This Month: $535 Target: $400
 133% 

Using a string array to create a model list?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NakedSnake
Junior Member
Join Date: Nov 2017
Old 12-25-2018 , 13:01   Using a string array to create a model list?
Reply With Quote #1

i'm looking to create a script which can load a list of models the player can equip

for example ID 1 would have one model

and ID 2 would have a different model

something to the effect of


PHP Code:
pubic action GetCostumes(){
char costumelist={"model1.mdl","model2.mdl" }
char matlist= { {"model1tex.vmt","model1.vtf"} , {"model2.vmt","model2.vtf" } }
char returnlist[][]={ costumelistmatlist }
return 
returnlist;
}

public 
action EquipCostume(id,list){
Setmodel(list[id]) // equips slot of the list
}

array 
availablecostumes=GetCostumes(); // get list from above to a local array, this can be used to add to a downloadlist later perhaps

EquipCostume(0,availablecostumes); /// equips model1.mdl to player from the list 
how could this be realistically achieved?

Last edited by NakedSnake; 12-25-2018 at 13:10. Reason: phrasing
NakedSnake is offline
Reply


Thread Tools
Display Modes

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 19:28.


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