OnPlayerRequestClass TR
From SA-MP Wiki
Description:
Oyuncu, skin seçme ekranında skin değiştirdiğinde bu callback çağırılır.
(playerid, classid)
playerid | Sınıfını değiştiren oyuncunun ID'si. |
classid | O an oyuncunun baktığı sınıfın ID'si. |
Return Values:
Returning 0 in this callback will prevent the player from spawning. The player can be forced to spawn when SpawnPlayer is used however the player will re-enter class selection the next time they die.
![]() Note | Sınıf üretmek için bkz:AddPlayerClass |
public OnPlayerRequestClass(playerid,classid) { if(classid == 3 && !IsPlayerAdmin(playerid)) { SendClientMessage(playerid,COLOR_GREEN,"Bu skin sadece admin içindir!"); return 0; } return 1; }
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnPlayerRequestSpawn: Called when a player attempts to spawn via class selection.
Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- AddPlayerClass: Add a class.