05.07.2016, 19:43
Код:
public OnPlayerRequestSpawn(playerid) { switch(pInfo[playerid][Class]) { case CLASS_FBI: { if(pInfo[playerid][CnRP] > 10000) { SendClientMessage(playerid, -1, "{AA3333}[ERROR] {FFFFFF}You must have {FFFF00}10,000 CnR Points to join the FBI class"); return 0; } } case CLASS_CIA: { if(pInfo[playerid][CnRP] > 15000) { SendClientMessage(playerid, -1, "{AA3333}[ERROR] {FFFFFF}You must have {FFFF00}15,000 CnR Points to join the CIA class"); return 0; } } case CLASS_MILITARY: { if(pInfo[playerid][CnRP] > 25000) { SendClientMessage(playerid, -1, "{AA3333}[ERROR] {FFFFFF}You must have {FFFF00}20,000 CnR Points to join the Military class"); return 0; } } } return 1; }