15.08.2011, 01:31
hey all i want to make a cmd so that a gang member could get their weapons....like gang La Vice...but only gang member...not regular people or admins...hope u help me..
if(yourgang[playerid] == blahblahblah)
{
//Give them weapon
}
new LaVice;
// top of script
new IsLaVice[MAX_PLAYERS];
// in the function where it detects the player is a gang member, like your /joingang command for example
IsLaVice[playerid] = 1;
// in your /gangweapon command or something
if(IsLaVice[playerid] == 1)
{
// give their weapons here
// other stuff
return 1;
}
else
{
return SendClientMessage(playerid,color,"You aren't a gang member.");
}