Bottle and cigarret.
#1

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!
Reply
#2

Help! I need to finhish it till the 5 o'clock pm, and here in Brazil it's 4:54 pm!
Reply
#3

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.
Reply
#4

EDIT: Thanks!
Reply
#5

Alright, just comment it or remove it. Shouldn't it return a value though? Oh well, good luck.
Reply
#6

It worked, but the question still in the air... Why SA:MP creted a bottle and a cigarret?
Reply
#7

I don't think it was intended, they appear for me if I die too quickly or something.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)