huge problen
#1

I have 2 problems with CMD spec code that i made

1.where to put that?
pawn Код:
format(astring,sizeof(astring)," [Cmd Spec] %s (ID: %d) did the command: %s", name, playerid, cmdtext);
        SendClientMessageToAdmins(COLOR_GREEN, astring, 6);
2.how do define the CmdSpec,like this?:
pawn Код:
new CmdSpec[MAX_PLAYERS];
please help me
Reply
#2

1. OnPlayerText.

2. I think you mean new CmdSpec[MAX_PLAYERS] = 1; // or 0 || And use if(CmdSpec[playerid] == 1) return SendClientMessage(playerid, COLOR, "You're already spectating");
Reply
#3

Ow sory, I understood 2 wrong..
Reply
#4

Quote:
Originally Posted by [WsR
RyDeR ]
1. OnPlayerText.

2. I think you mean new CmdSpec[MAX_PLAYERS] = 1; // or 0 || And use if(CmdSpec[playerid] == 1) return SendClientMessage(playerid, COLOR, "You're already spectating");
yea thats how im using it with 1 and 0
so how to change that
Reply
#5

So where to put that?
Reply
#6

Quote:
Originally Posted by [WsR
RyDeR ]
1. OnPlayerText.
Reply
#7

Quote:
Originally Posted by cj101
Quote:
Originally Posted by [WsR
RyDeR ]
1. OnPlayerText.
he said 2 wrong.. O___o
Reply
#8

Hmm, can you explain what you want to do with CmdSpec[MAX_PLAYERS]; I don't understand it that good.
Reply
#9

If it CmdSpec = 1 you can see all the cmd
if it CmdSpec = 0 you cant see all the cmd
Reply
#10

Quote:
Originally Posted by nuriel8833
If it CmdSpec = 1 you can see all the cmd
if it CmdSpec = 0 you cant see all the cmd
Add in your script above, #define CMDSPEC
Then go to OnPlayerText use
#if defined CMDSPEC
format(astring,sizeof(astring)," [Cmd Spec] %s (ID: %d) did the command: %s", name, playerid, cmdtext);
SendClientMessageToAdmins(COLOR_GREEN, astring, 6);
#endif

You can use // on #define CMDSPEC to disable it. When it's on (whitout //) you can see it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)