22.11.2011, 01:49
I'll assume 0=male and 1=female but it could be the opposite.
pawn Код:
if(!strcmp(cmdtext, "/command", true)) // Or whatever command system you use
{
if(PlayerInfo[playerid][Sex] == 1) return SendClientMessage(playerid, red, "Only males can use this command.");
// code to do if they are male
}