Bottle and cigarret. - 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: Bottle and cigarret. (
/showthread.php?tid=80446)
Bottle and cigarret. -
Hot - 04.06.2009
Every time I try to spawn without login, it kill me and force me to reselect a character.
Код:
public OnPlayerSpawn(playerid)
{
if(Logged[playerid] == 0)
{
GameTextForPlayer(playerid, "~r~L~w~ogin ~r~b~w~efore ~r~s~w~pawn,~w~'/login' ~r~or ~w~'/register'", 6000, 4);
SetPlayerHealth(playerid, 000.0);
ForceClassSelection(playerid);
return 1;
}
return 1;
}
But if I spawn without login it kill me, and when I get back to the class selection skin these creepy things appear on the game:
HELP!
Re: Bottle and cigarret. -
Hot - 04.06.2009
Help! I need to finhish it till the 5 o'clock pm, and here in Brazil it's 4:54 pm!
Re: Bottle and cigarret. -
Lewwy - 04.06.2009
Just do:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(Logged[playerid] == 0)
{
GameTextForPlayer(playerid, "~r~L~w~ogin ~r~b~w~efore ~r~s~w~pawn,~w~'/login' ~r~or ~w~'/register'", 6000, 4);
return 0;
}
else
{
SpawnPlayer(playerid);
return 1;
}
return 1;
}
not tested.
Re: Bottle and cigarret. -
Hot - 04.06.2009
EDIT: Thanks!
Re: Bottle and cigarret. -
Lewwy - 04.06.2009
Alright, just comment it or remove it. Shouldn't it return a value though? Oh well, good luck.
Re: Bottle and cigarret. -
Hot - 04.06.2009
It worked, but the question still in the air... Why SA:MP creted a bottle and a cigarret?
Re: Bottle and cigarret. -
Lewwy - 04.06.2009
I don't think it was intended, they appear for me if I die too quickly or something.