PWE_PRC8/_module/nss/inc_isdm.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

15 lines
368 B
Plaintext

// returns true if player has dm access
// if you change this you must rebuild the module
int isdm(object PC)
{
int s, dcnt = GetLocalInt(GetModule(), "dcnt");
string name = GetPCPlayerName(PC);
for(s=0; s<dcnt; s++) {
if (name == GetLocalString(GetModule(), "dname"+IntToString(s))) {
return TRUE;
}
}
return FALSE;
}