Spawn login Problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spawn login Problem (
/showthread.php?tid=277010)
Spawn login Problem -
Hunted...Killed - 16.08.2011
I am trying to get it so you cant spawn until you use the /login cmd but i cant seem to get it here is what i have
public OnPlayerRequestClass(playerid, classid)
{
if(login[playerid] == 0) return SendClientMessage(playerid, -1, "{FFAF00}[ACCOUNT]Please /login first.");
return 1;
}
public OnPlayerConnect(playerid)
{
login[playerid] = 0;
return 1;
}
Can anybody tell me if im doing something wrong here?
Re: Spawn login Problem -
HyperZ - 16.08.2011
Remove it from OnPlayerRequestClass(playerid, classid).. and it under OnPlayerRequestSpawn(playerid).
Something like this:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if (login[playerid] == 0)
{
SendClientMessage(playerid, -1, "{FFAF00}[ACCOUNT]Please /login first.");
return 0;
}
return 1;
}
Re: Spawn login Problem -
Hunted...Killed - 16.08.2011
Hey this worked thanks i really appreciate it!
Re: Spawn login Problem -
HyperZ - 16.08.2011
Quote:
Originally Posted by Hunted...Killed
Hey this worked thanks i really appreciate it!
|
Your welcome.