A little issue
#1

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;
}
Reply
#2

Quote:
Originally Posted by Goldilox
Посмотреть сообщение
I can't try anything right now.
...
Why not?

And should you be offering scripting service (for cash) if you are having trouble with something so trivial as returning zero from a command?
Reply
#3

So, people who aren't in an organization should just receive the first message? That's simple, put return in front of the message.

I agree with iggy1.
Reply
#4

The time I opened this topic, I was at school and because I am bad at typing in my iPod, I couldn't fix this although I could copy/paste. That's what that is.

The thing was, I want non org player to not to access this command, I have fixed it now. Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)