Quote:
Originally Posted by fowlplay4
Only works for players (server-side) not RCs.
PHP Code:
// This code doesn't work! function onPlayerLogin(pl) { if (pl.level == NULL) { sendtorc("HEY! Listen!" SPC pl.account); } }
|
This is what im using, and when an RC log's in.. my screen is alerted IMEDIATLY.. also, upon logoff.. therefor it MUST Be possible without a timeout.. im dead serious.. load this weapon on testbed for proof.. "public/scriptless/public"
PHP Code:
function onPlayerLogin( pl ) {
for ( temp.npl : allplayers ) {
if ( temp.npl.communityname != pl.communityname ) {
with( findplayer(temp.npl) ) {
if ( temp.npl.level != NULL )
triggerclient("gui", this.name, "notify", pl.communityname, pl.head, "on");
}
}
}
}
function onPlayerLogout( pl ) {
for ( temp.npl : allplayers ) {
with ( temp.npl ) {
if ( temp.npl.level != NULL )
findplayer(temp.npl).triggerclient("gui", this.name, "notify", pl.communityname, pl.head, "off");
}
}
}
//#CLIENTSIDE
function onActionClientside() {
if ( params[0] == "notify" ) {
this.notify_account.add(params[1]);
this.notify_icon.add(params[2]);
this.notify_status.add(params[3]);
noti();
}
}
Looking at this script it looks like it would not show rc logins but it for some reason does.. o_o
And I know this for FACT because when I login my rc.. I get the error "you do not have admin rights" unless i use in-game rc.. and it will spam my notification system so bad i have to reconnect or sit thru a half hour of spam