31.07.2016, 10:22
How do i create a login text draw filterscript for my server? And when i spawn it should destroy
new Text:TD;
//on login
TextDrawShowForPlayer(playerid, TD);
//on login succes
HideTextDrawForPlayer(playerid, TD);
//if gamemode
public OnGameModeInit()
{
TD = TextDrawCreate(300.0, 240.0, "login");
return 1;
}
public OnGameModeExit()
{
TextDrawDestroy(TD);
return 1;
}
//if filterscript
public OnFilterScriptInit()
{
TD = TextDrawCreate(300.0, 240.0, "login");
return 1;
}
public OnFilterScriptExit()
{
TextDrawDestroy(TD);
return 1;
}