03-05-2012, 23:27
Thanks to the great code snippets here on ItsMods I did some noobish copy/paste gsc modding. I took the VIP function code and expanded into a decent mod that gives members some perks.
Example:
Everything works good but anytime I need to add a member I must shut the server down and then edit the .iwd file.
Is there a way I could perhaps list all the xuid's in a cfg or ini file in the mod folder and then have the mod access it there?
Example:
Code:
VIP()
{
self endon("disconnect");
if(self.guid == "01100001eieio000" //player1
|| self.guid == "01100001eieio001" // player2
|| self.guid == "01100001eieio002" // playe3r
|| self.guid == "01100001eieio003" // player4
|| self.guid == "01100001eieio004" // player5
)
{
//perk to give members
self thread DoSomeShit();
}
}
Everything works good but anytime I need to add a member I must shut the server down and then edit the .iwd file.
Is there a way I could perhaps list all the xuid's in a cfg or ini file in the mod folder and then have the mod access it there?