@@ -183,7 +183,7 @@ class Account <playerId (MAX_PLAYERS)> {
183183 Annotation: : ExpandList< OnPlayerLogin> (playerId);
184184
185185 // Broadcast an OnPlayerLogin callback that can be intercepted by other scripts.
186- CallRemoteFunction (" OnPlayerLogin" , " iiiii " , playerId, m_userId, Player (playerId)- > isVip (), AccountData (playerId)- > gangId (), 0 /* undercover */ );
186+ CallRemoteFunction (" OnPlayerLogin" , " iiii " , playerId, m_userId, Player (playerId)- > isVip (), AccountData (playerId)- > gangId ());
187187 }
188188
189189 /* *
@@ -244,6 +244,7 @@ class Account <playerId (MAX_PLAYERS)> {
244244 */
245245 public onSuccessfulModLoginAttempt (PlayerAccessLevel: level, originalUsername[], originalUserId) {
246246 AccountData (playerId)- > applyPlayerLevel (level);
247+
247248 UndercoverAdministrator (playerId)- > setIsUndercoverAdministrator (true );
248249 UndercoverAdministrator (playerId)- > resetUndercoverLoginAttemptCount ();
249250 UndercoverAdministrator (playerId)- > setOriginalUsername (originalUsername);
@@ -260,12 +261,10 @@ class Account <playerId (MAX_PLAYERS)> {
260261
261262 EchoMessage (" notice-crew" , " z" , notice);
262263
263- // Broadcast an OnPlayerLogin callback that can be intercepted by other scripts.
264- CallRemoteFunction (" OnPlayerLogin " , " iiiii " , playerId, originalUserId , Player (playerId)- > isVip (), AccountData (playerId) - > gangId (), 1 /* undercover */ );
264+ // Broadcast an OnPlayerModLogin callback that can be intercepted by other scripts.
265+ CallRemoteFunction (" OnPlayerModLogin " , " iii " , playerId, _: level , Player (playerId)- > isVip ());
265266
266267 Annotation: : ExpandList< OnPlayerModLogin> (playerId);
267-
268- // TODO (Russell): Should this broadcast an event similar to OnPlayerLogin as well?
269268 }
270269
271270 /* *
@@ -289,8 +288,11 @@ class Account <playerId (MAX_PLAYERS)> {
289288 }
290289};
291290
292- forward OnPlayerLogin (playerid, userid, vip, gangId, undercover );
293- public OnPlayerLogin (playerid, userid, vip, gangId, undercover ) {}
291+ forward OnPlayerLogin (playerid, userid, vip, gangId);
292+ public OnPlayerLogin (playerid, userid, vip, gangId) {}
294293
295294forward OnPlayerGuestLogin (playerId);
296295public OnPlayerGuestLogin (playerId) {}
296+
297+ forward OnPlayerModLogin (playerid, level, vip);
298+ public OnPlayerModLogin (playerid, level, vip) {}
0 commit comments