04.05.2013, 03:54
So, I have a command /ocmds which tells the current organization commands. What I want is where it sends the client message of "TwD Role-Play organizational commands." I want it to disguise from non organizational person and return 0 to those. I can't try anything right now. Can someone do it real quick? Thanks.
pawn Код:
CMD:ocmds(playerid, params[])
{
SendClientMessage(playerid, COLOR_SAMP,"TwD Role-Play organizational commands.");
if(IsPlayerAdmin(playerid))SendClientMessage(playerid, COLOR_WHITE,"/setleader");
if(IsLeader(playerid) == 1)SendClientMessage(playerid, COLOR_WHITE,"/setmember /kickmember /setrank /members /decline /okick");
if(PlayerOrg[playerid] >= 1)SendClientMessage(playerid,COLOR_WHITE, "/orgs /request /resign /oc /civil /odeposit /owithdraw");
if(PlayerOrg[playerid] == 1)SendClientMessage(playerid, COLOR_WHITE,"/(un)tie /(un)cuff /pu /loc /(un)jail /setwant /lc /ticket");
if(PlayerOrg[playerid] == 2)SendClientMessage(playerid, COLOR_WHITE,"/tie /untie /robhouse /getdrugs /givedrugs");
return 1;
}