Message
#1

How i can do like a command

/showtp

it will show all teleport messages when a player teleports

/hidetp

it will hide the messages
Reply
#2

deleted.
Reply
#3

Bump
Reply
#4

pawn Код:
bool:showtp = false; // top

if(showtp == true) // put on your command
{
    // ... messages
}


CMD:tpmsg(playerid, params[]) // Example command
{
    if(showtp == false) showtp = true;
    else showtp = false;
    return 1;
}
Reply
#5

I dont understand explain plz
Reply
#6

pawn Код:
new IsTPTogged[MAX_PLAYERS];
Then in your teleport command to check if they have it togged or not...
pawn Код:
if(IsTPTogged[playerid] == 0) SendClientMessage(playerid, -1, "You have been teleported by an admin.");
Then the teleporting code.

A command to toggle it would be(in ZCMD)
pawn Код:
CMD:togtpmessages(playerid, params[])
{
if(IsTPTogged[playerid] == 0)
{
IsTPTogged[playerid] == 1;
SendClientMessage(playerid, -1, "You will no longer see admin teleport messages.");
}
else
{
IsTPTogged[playerid] == 0;
SendClientMessage(playerid, -1, "You will now see admin teleport messages.");
}
return 1;
}
Hope I explained this good enough for you.
Reply
#7

I have like teleport commands and it sends messages to everyone when someone teleport, and i have a settings textdraw there you can turn it on / off, how i do therE?
Reply
#8

If they click the text-draw then to turn it on:
pawn Код:
IsTPTogged[playerid] = 0;
Or to turn it off,
pawn Код:
IsTPTogged[playerid] = 1;
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)