Posts: 498
Threads: 24
Joined: Apr 2013
title says everything
i need to stay in OnPlayerConnect
because i have some textdraws which are selectable and i want player to not go on OnPlayerRequestClass
untill he /she selects
any idea ?
Posts: 1,276
Threads: 6
Joined: Aug 2014
Just add them OnPlayerRequestClass and return 0.
Posts: 498
Threads: 24
Joined: Apr 2013
um actually i need to keep them in OnPlayerConnect
i know other ways
Posts: 1,276
Threads: 6
Joined: Aug 2014
Well once they connect OnPlayerConnect will only be called once.
Posts: 498
Threads: 24
Joined: Apr 2013
but there IS a way because i saw in some servers
anyone help ?
Posts: 277
Threads: 40
Joined: Sep 2012
Reputation:
0
if you want to stay to OnPlayerConnect you have to add TogglePlayerSpectating(playerid, true);
ex public OnPlayerConnect(playerid)
{
TogglePlayerSpectating(playerid, true);
return 1;
}
after you finish with the textdraw go to the line the you add TextDrawHideForPlayer... and add under TogglePlayerSpectating(playerid, false);