HoS_PRC8/_mod/_module/nss/pelben_c_no.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

25 lines
573 B
Plaintext

//pelben_c_no
string fnGetPID(object oPC)
{
return GetPCPublicCDKey(oPC)+GetPCPlayerName(oPC)+GetName(oPC);
} // fnGetPID()
void fnGNBDTag(object oPC)
{ // set destination
string sID=GetLocalString(oPC,"sTeamID");
int nDest=16;
if (sID=="UNC") nDest=19;
else if (sID=="UND") nDest=22;
else if (sID=="SPID") nDest=25;
SetLocalString(OBJECT_SELF,"sGNBDTag",IntToString(nDest));
} // fnGNBDTag()
void main()
{
object oPC=GetPCSpeaker();
object oMod=GetModule();
string sPID=fnGetPID(oPC);
SetLocalInt(oMod,"nPage_"+sPID,TRUE);
fnGNBDTag(oPC);
}