Called when a player changes class at class selection (and when class selection first appears).
|playerid||The ID of the player that changed class.|
|classid||The ID of the current class being viewed (returned by AddPlayerClass).|
It is always called first in filterscripts.
if (classid == 3 && !IsPlayerAdmin(playerid))
SendClientMessage(playerid, COLOR_RED, "This skin is only for admins!");
This callback is also called when a player presses F4.
- AddPlayerClass: Add a class.