10.10.2011, 16:54
pawn Код:
if(strcmp(inputtext, dj(File, "Password", 40), true) == 0)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, "You are now logged in, press spawn!");
PVar[playerid][pKills] = djInt (File, "Kills");
PVar[playerid][pDeaths] = djInt (File, "Deaths");
PVar[playerid][pLevel] = djInt (File, "Level");
PVar[playerid][pMuted] = djInt (File, "Muted");
PVar[playerid][pSkin] = djInt (File, "Skin");
PVar[playerid][pMoney] = djInt (File, "Money");
print("Passed Money");
PVar[playerid][pTut] = djInt (File, "Tut");
print("Passed TUT");
PVar[playerid][pLeader] = djInt (File, "Leader");
print("Passed LEADER");
format(PVar[playerid][pMutedReason], 52, "%s", dj(File, "MutedReason"));
PVar[playerid][pLastX] = djFloat (File, "LastX");
PVar[playerid][pLastY] = djFloat (File, "LastY");
PVar[playerid][pLastZ] = djFloat (File, "LastZ");
print("Passed position saving");
SpawnPlayer(playerid);
print("Passed spawn!")
}