A little issue - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A little issue (
/showthread.php?tid=434760)
A little issue -
Goldilox - 04.05.2013
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;
}
Re: A little issue -
iggy1 - 04.05.2013
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?
Re: A little issue -
Scenario - 04.05.2013
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.
Re: A little issue -
Goldilox - 04.05.2013
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.