Gravity

Started by Xmair, Aug 29, 2015, 01:48 PM

Previous topic - Next topic

Xmair

Hello, I wanna ask something, can we change only one world's gravity not the whole server? Transfer the player.Gravity to 0.4 -,-
Q2:
How can we use an ignore function on , onplayerchat function? Since the IsIgnored function isn't transferred to 0.4. It's my request to transfer it or tell / atleast give an example on how to do it?

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

FinchDon

i think... impossible
For any help and support Join #s-s at IRC for Help in Scripting
( For Newbies )

KAKAN

Quote from: FinchDon on Aug 29, 2015, 01:57 PMi think... impossible


What do u mean by saying it?
oh no

Thijn

Quote from: KAKAN on Aug 29, 2015, 02:00 PM
Quote from: FinchDon on Aug 29, 2015, 01:57 PMi think... impossible


What do u mean by saying it?
Exactly what he says. The answer is no.

Xmair

Another question added.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

FinchDon

return 0; i think it will be use for it
For any help and support Join #s-s at IRC for Help in Scripting
( For Newbies )

KAKAN

Quote from: Xmair on Aug 29, 2015, 01:48 PMHow can we use an ignore function on , onplayerchat function? Since the IsIgnored function isn't transferred to 0.4. It's my request to transfer it or tell / atleast give an example on how to do it?

I too want to know it.
oh no

Xmair

@FinchDon , If you return 0; for it, maybe the message won't go to the server -,- .

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

KAKAN

return 0 can't be used for one player(I think)
It'll affect all the players in the server, just like mute
oh no

Thijn

Just do a ClientMessage to each player with the chat line, and don't for people who have them ignore. Then return 0 to suppress the default message.
Something like this, you'll have to code the ignore logic yourself.

function onPlayerChat( player, message ) {
for( local i = 0; i < GetMaxPlayers(); i++ ) {
local plr = FindPlayer( i );
if ( plr && !isIgnore(player, plr) ) {
local teamColour = player.Colour;
local textCol = format("#%02X%02X%02X", teamColour.r, teamColour.g, teamColour.b);
ClientMessage( "[" + textCol + "]" + player.Name + ": [#FFFFFF]" + message, plr, 0, 0, 0 );
}
}
return 0;
}

function isIgnore( player, plr ) {
if ( player is ignored for plr ) {
return true;
} else {
return false;
}

}

KAKAN

Oye Thanks, I'll work with it
oh no

Xmair

Thanks @Thijn , I made it ::) I'll add more questions to this topic when I need to know.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

EK.IceFlake

@Thijn
*CTRL+ENTER*
[#something]*> [#ffffff]maxorator [#something]joined the server. *<
*CTRL+ENTER*
[#00ffff]maxorator[#ffffff]: i no lik u srvr bai

KAKAN

I actually can't understand what u mean
oh no