01.11.2009, 10:14
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:
This doesnt make it working at all in-game. Also my gamemode changes to Blank script when im using this 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;
}

