07.08.2012, 23:19
Look at these lines:
Try change them with this:
Also, check this: https://sampwiki.blast.hk/wiki/SetSpawnInfo and https://sampwiki.blast.hk/wiki/SpawnPlayer.
And show register/login dialogs in OnPlayerRequestClass.
__________________________________
EDIT:
Not really, it works as a "you must register yes or yes", else you will be kicked.
pawn Код:
else
{
PlayerInfo[playerid][pAdmin] = dini_Int(file, "Admin");
GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
SpawnPlayer(playerid);
}
}
pawn Код:
else
{
PlayerInfo[playerid][pAdmin] = dini_Int(file, "Admin");
GivePlayerMoney(playerid, dini_Int(file, "Money"));
//PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid); ----- No sense? :S
SetSpawnInfo(playerid,0,dini_Int(file,"Model"),0.1,0.2,0.3,0.0,0,0,0,0,0,0); //Must specify the spawn data. :|
SpawnPlayer(playerid); //Now spawn him.
}
}
And show register/login dialogs in OnPlayerRequestClass.
__________________________________
EDIT:
Not really, it works as a "you must register yes or yes", else you will be kicked.