Problem with playerchats

ok , i have a problem , the first script work (if event team say /open)
but any player say any word and the block is spawned :confused:

the script :

[CODE]setimg event_block.gif;
show;
if(playerchats && strcontains(#g,Events)) {
if(strequals(#c,/open)) {
hide;
}
if(strequals(#c,/close)) {
show;
}
}

[/CODE]

The problem is you need to put it in with the first flag.

How?

if(playerchats && strequals(#g,Events) && strequals(#c,/open)) {

do not work , if i say one word block are spawned :confused:

is that the whole script?

Actually he had it right except for two things.

setimg event_block.gif; // Why are these outside of a conditional? show; // Why are these outside of a conditional? if(playerchats && strcontains(#g,Events)) { if(strequals(#c,/open)) { hide; } if(strequals(#c,/close)) { show; } }

Yenairo, you could do with some learning of how brackets operate. o_o
As for Trakan, to learn why shit happens when you donโ€™t mean for it to, when itโ€™s outside of a bracket.

[QUOTE=Yenairo;54494]is that the whole script?[/QUOTE]

mmhmmm

It work thanks .

You can lock