Login problem and few questions - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Login problem and few questions (
/showthread.php?tid=296175)
Login problem and few questions -
Qur - 10.11.2011
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;
}
Re: Login problem and few questions -
[MG]Dimi - 10.11.2011
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;
Re: Login problem and few questions -
Qur - 10.11.2011
Thanks, I already figured it out..