View Single Post
Author Message
NakedSnake
Junior Member
Join Date: Nov 2017
Old 12-25-2018 , 12: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 12:10. Reason: phrasing
NakedSnake is offline