Login problem and few questions
#1

Well.. I kind back to scripting after few years I didnt looked at it.. I cant remember nothin..
and right now i'm using gf from scratch.. need a few things..
when i log into the server and press left shift i spawn with logging in.. so i want to cancel this shit..
how the hell should i do that?
i changed this small part:

Код:
public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SpawnPlayer(playerid);
    return 1;
}
Reply
#2

I dont quite understand you. If you want to automatically spawn player after logging use SpawnPlayer under callback for login (on dialog response or cmds /login). If you want to prevent non-logged players from spawning, check are they logged under OnPlayerRequestSpawn, if not return 0;
Reply
#3

Thanks, I already figured it out..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)