View Single Post
RoflCakesInUrFace
Junior Member
Join Date: Jul 2017
Location: Somewhere in Canada
Old 07-13-2017 , 14:58   Re: Storing a list of int values in a file
Reply With Quote #5

The plugin was created with the intent of messing with my friends, it does something to them if certain weapons are equipped.

I want to populate this table from an external file so I don't have to recompile it when I want to change something.

I intend to add more to it once I have the config feature working.

Code:
// Lookup table for weapon definition indexes
// TODO: Replace with an external list/config
int ItemLookup[][] = {

    {	// Remove all the player's weapons if they equip these
		
	415,
	231
		
    },
	
    { // Slows down the player if these are equipped 
			
	30667,
        163,
        44
    },
};

Last edited by RoflCakesInUrFace; 07-13-2017 at 15:00.
RoflCakesInUrFace is offline