21.06.2018, 02:47
Код:
public OnPlayerRequestClass(playerid, classid) { SetPlayerTeamFromClass(playerid, classid); return 1; }
Код:
SetPlayerTeamFromClass(playerid, classid) { if(classid == 0) { if(pInfo[playerid][pXP] <= 9999) return SendClientMessage(playerid, -1, "{FF0000}[ERROR]{FFFFFF} You do not have enough XP to join this class."); } else if(classid == 1) { if(pInfo[playerid][pXP] <= 0) return SendClientMessage(playerid, -1, "{FF0000}[MESSAGE]{FFFFFF} You joined this class."); } }