OnPlayerRequestSpawn problem
#4

Код:
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;
}
Just like this.
Reply


Messages In This Thread
OnPlayerRequestSpawn problem - by Quinncell - 05.07.2016, 19:18
Re: OnPlayerRequestSpawn problem - by Quinncell - 05.07.2016, 19:37
Re: OnPlayerRequestSpawn problem - by Napst34 - 05.07.2016, 19:41
Re: OnPlayerRequestSpawn problem - by Napst34 - 05.07.2016, 19:43
Re: OnPlayerRequestSpawn problem - by Quinncell - 05.07.2016, 19:49
Re: OnPlayerRequestSpawn problem - by Napst34 - 05.07.2016, 19:53

Forum Jump:


Users browsing this thread: 3 Guest(s)