am looking for a command for players and admin.
#1

For admins i need /oocoff and /oocon

For Players i need /ooc

Please can someone make this?

I will give +rep!
Reply
#2

dude what that supposed to mean ?
Reply
#3

I mean if someone can help me to create these commands im just an newbie on scripting, if you just want to write negative comment.

Do not comment!.

Just asking nice...
Reply
#4

are ya joking wid me ey ? am asking what do you mean by ooc ?
Reply
#5

Ohh sorry , you dont know what /ooc means?.

It mean Out Of Character Chat = you can only chat with things like in IRL.

Its a RP command.
Reply
#6

Do you mean, /oocoff to disable the Out Of Character chat and /oocon to enable the Out Of Character chat, or am wrong?
Reply
#7

Currectly!

Please help me with this bro?
Reply
#8

Or TheSnake PM me if you want to help me?
Reply
#9

You'd basically just use format, SendClientMessage. You could browse through some role play gamemodes and find out how they did theirs.
Reply
#10

There are a lot of people that search around to find these topic to solve their problems.
I recommend that you don't help someone by PMing them. Posting inside the topic is much better.

Inc, try this.
pawn Код:
// Add to the top of the script
new bool:oochat;

// This is ZCMD
CMD:enableooc(playerid)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be an admin to use this."); // Change it to your admin variable

    if(oochat == 0)
    {
        oochat = 1;
        SendClientMessage(playerid, -1, "Out of character chat enabled.");
    }
    else if(oochat == 1)
    {
        oochat = 0;
        SendClientMessage(playerid, -1, "Out of character chat disabled.");
    }
    return 1;
}

CMD:ooc(playerid, params[])
{
    if(oochat == 1)
    {
        // It's allowed.
        // Do what ever you want.
    }
    else if(oochat == 0)
    {
        return SendClientMessage(playerid, -1, "Out of character chat is currently disabled.");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)