Class Restrictions
#8

Quote:
Originally Posted by freshOrange
Посмотреть сообщение
pawn Код:
if (strcmp("/cmd", cmdtext, true, 10) == 0)
    {
        if(classid == 2)
        {
        STUFF HERE
        return 1;
        }
    }
Like that? Not sure if it works tho.
I tried that like below before but i get a error message.
C:\Users\Muhib\Desktop\samp server\gamemodes\GangWar.pwn(371) : error 017: undefined symbol "classid"

If there is a way where the player selects the spy class they can set their colour to this.
SetPlayerColor(playerid, 0x00FFFB11);

Код:
if (strcmp("/spy", cmdtext, true, 10) == 0)
    {
        if(classid == 2)
        {
        SetPlayerColor(playerid, 0x00FFFB11);
        return 1;
        }
	}
Reply


Messages In This Thread
Class Restrictions - by muhib777 - 16.07.2011, 09:56
Re: Class Restrictions - by freshOrange - 16.07.2011, 09:57
Re: Class Restrictions - by Kitten - 16.07.2011, 09:58
Re: Class Restrictions - by muhib777 - 16.07.2011, 10:05
Re: Class Restrictions - by freshOrange - 16.07.2011, 10:07
Re: Class Restrictions - by Kitten - 16.07.2011, 10:09
Re: Class Restrictions - by Basicz - 16.07.2011, 10:15
Re: Class Restrictions - by muhib777 - 16.07.2011, 10:15
Re: Class Restrictions - by Basicz - 16.07.2011, 10:17
Re: Class Restrictions - by freshOrange - 16.07.2011, 10:19
Re: Class Restrictions - by Kitten - 16.07.2011, 10:21
Re: Class Restrictions - by Basicz - 16.07.2011, 10:21
Re: Class Restrictions - by freshOrange - 16.07.2011, 10:22
Re: Class Restrictions - by muhib777 - 16.07.2011, 11:10

Forum Jump:


Users browsing this thread: 3 Guest(s)