19.07.2014, 22:25
pawn Код:
public CargarCuenta(playerid)
{
SpawnPlayer(playerid);
SetPVarInt(playerid, "PrimerSpawn", 1);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(GetPVarInt(playerid, "PrimerSpawn") != 0)
{
DeletePVar(playerid, "PrimerSpawn");
ResetPlayerMoney(playerid);
SetPlayerScore(playerid,Informacion[playerid][Nivel]);
GivePlayerMoney(playerid,Informacion[playerid][Dinero]);
SetPlayerSkin(playerid,Informacion[playerid][Skin]);
SetPlayerPos(playerid,Informacion[playerid][Pos_x],Informacion[playerid][Pos_y],Informacion[playerid][Pos_z]);
SetPlayerInterior(playerid,Informacion[playerid][Interior]);
SetPlayerVirtualWorld(playerid,Informacion[playerid][VW]);
SetPlayerHealth(playerid,Informacion[playerid][Vida]);
SetPlayerArmour(playerid,Informacion[playerid][Chaleco]);
}
return 1;
}

