Oldskool
#23

Quote:
Originally Posted by Y_Less
Посмотреть сообщение
Or just y_commands...
or even y_bit... or y_playerarray... and if you really don't want to use anything pre-made because ur so oldsk00l l33t you simply use bit shifting!

pawn Код:
new n = n << 1
new y = n >> 1
And if that's too complicated for you, here is an even easier way!

pawn Код:
#define COMMAND_CUFF 1
#define COMMAND_TAZER 2
#define COMMAND_SLAP 4
#define COMMAND_COUGH 8 // notice how each is double of the last?

// in order to assign:

new PlayerPermission = COMMAND_CUFF + COMMAND_SLAP + COMMAND_COUGH; // player can not use TAZER

// In order to check

if(!(COMMAND_TAZER&PlayerPermission))
{
     // sry cant use!
}
Isn't that hard.. now is it?

PS: That's pretty much what y_commands does already but you know how oldsk00l people are! They have to have made it themself.
Reply


Messages In This Thread
Oldskool - by Mike_Peterson - 17.08.2012, 10:03
Re: Oldskool - by Mike_Peterson - 17.08.2012, 10:06
Re: Oldskool - by playbox12 - 17.08.2012, 12:34
Re: Oldskool - by steki. - 17.08.2012, 13:07
Re: Oldskool - by AndreT - 17.08.2012, 13:15
Re: Oldskool - by Universal - 17.08.2012, 13:23
Re: Oldskool - by Mike_Peterson - 17.08.2012, 18:33
Re: Oldskool - by playbox12 - 17.08.2012, 19:11
Re: Oldskool - by Calgon - 17.08.2012, 19:56
Re: Oldskool - by FireCat - 17.08.2012, 20:31
Re: Oldskool - by [ABK]Antonio - 17.08.2012, 22:56
Re: Oldskool - by Y_Less - 18.08.2012, 06:09
Re: Oldskool - by [HLF]Southclaw - 25.08.2012, 22:40
Re: Oldskool - by Guitar - 26.08.2012, 08:01
Re: Oldskool - by DRIFT_HUNTER - 23.09.2012, 01:14
Re: Oldskool - by xDeadlyBoy - 17.10.2012, 23:41
Re: Oldskool - by [FSaF]Jarno - 19.10.2012, 13:29
Re: Oldskool - by Snipa - 21.10.2012, 03:16
Re: Oldskool - by playbox12 - 22.10.2012, 08:26
Re: Oldskool - by AndreT - 22.10.2012, 08:48
Re: Oldskool - by [HLF]Southclaw - 22.10.2012, 13:57
Re: Oldskool - by Y_Less - 22.10.2012, 14:05
Re: Oldskool - by Extremo - 23.10.2012, 09:37
Re: Oldskool - by Slice - 23.10.2012, 10:29
Re: Oldskool - by Y_Less - 23.10.2012, 10:38
Re: Oldskool - by Extremo - 23.10.2012, 16:07
Re: Oldskool - by SchurmanCQC - 11.12.2012, 21:22
Re: Oldskool - by Mike_Peterson - 12.12.2012, 16:43
Re: Oldskool - by Y_Less - 12.12.2012, 16:54
Re: Oldskool - by Mike_Peterson - 12.12.2012, 17:07
Re: Oldskool - by [HLF]Southclaw - 12.12.2012, 18:05
Re: Oldskool - by Mike_Peterson - 12.12.2012, 18:16
Re: Oldskool - by mastermax7777 - 13.12.2012, 20:41
Re: Oldskool - by RebeloX - 13.12.2012, 20:54

Forum Jump:


Users browsing this thread: 4 Guest(s)