Admin has joined the server
#1

Hi guys, well i want to create a filterscript that changes your color once you login to rcon, and also want to use GameTextForAll to show that an admin joined the server. I have the script already (i think), but where i have to put this at a filterscript?

The script i currently have:
Код:
public OnFilterScriptInit()
{

if(IsPlayerAdmin(playerid))
SetPlayerColor(playerid, FFCC00)
new name[ 24 ], string[ 64 ];
GetPlayerName( playerid, name, 24 );
format( string, sizeof(string), "Admin ~w~%s has joined!", name );
GameTextForAll( string, 5000, 3 );

return 1;
}
This doesnt make it working at all in-game. Also my gamemode changes to Blank script when im using this filterscript.
Reply


Messages In This Thread
Admin has joined the server - by Freddy_Manchez - 01.11.2009, 10:14
Re: Admin has joined the server - by woot - 01.11.2009, 10:21
Re: Admin has joined the server - by Zeex - 01.11.2009, 10:25
Re: Admin has joined the server - by Burridge - 01.11.2009, 10:29
Re: Admin has joined the server - by Freddy_Manchez - 01.11.2009, 10:43
Re: Admin has joined the server - by woot - 01.11.2009, 11:55
Re: Admin has joined the server - by radhakr - 01.11.2009, 13:12
Re: Admin has joined the server - by Freddy_Manchez - 01.11.2009, 15:22
Re: Admin has joined the server - by Burridge - 01.11.2009, 16:55

Forum Jump:


Users browsing this thread: 1 Guest(s)