Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Help (
/showthread.php?tid=409710)
Help -
emilio_187 - 22.01.2013
hello guys i been scripting a really good script but i got a problem when i talk with /o i get [Administrator James] and then what ever i said but i want it to be like [Server Owner JAmes.......] or if ur head admin or lower [Head Admin James.....] Etc if anyone can help me please do
Re: Help -
Vexus - 22.01.2013
Would you perhaps post the command in this thread? I couldn't help you unless I saw what you've done.
It may be that some functions are messing with each other.
Re: Help -
3ventic - 23.01.2013
You could use switch() {}
Re: Help -
emilio_187 - 23.01.2013
if i use switch what to type?
Re: Help -
Djole1337 - 23.01.2013
For ex
pawn Код:
new
str[128];
switch(adminVar)
{
case 1: format(str, sizeof(str), "[Mod] %s: %s...", ...);
case 2; format(str, sizeof(str), "[G Mod] %s: %s... ", ...);
case 3: ..... and so on.
}
SendClientMessageTo...(-1, str);
Re: Help -
emilio_187 - 23.01.2013
Quote:
For ex
pawn Code:
new
str[128];
switch(adminVar)
{
case 1: format(str, sizeof(str), "[Mod] %s: %s...", ...);
case 2; format(str, sizeof(str), "[G Mod] %s: %s... ", ...);
case 3: ..... and so on.
}
SendClientMessageTo...(-1, str);
|
And if i use the would it identify if the server owner or head admin etc is talking on ooc?