public GetNew(playerid)
{
format(MSN,256, REGISTERS, gPlayers[playerid]);
new n; n = dini_Int(MSN,"New");
return n;
}
public SetNew(playerid,Monto)
{
format(MSN,256, REGISTERS, gPlayers[playerid]);
dini_IntSet(MSN,"New",Monto);
}
public GetPos(playerid)
{
format(MSN,256, REGISTERS, gPlayers[playerid]);
new Float:gpX,Float:gpY,Float:gpZ,str[256],string[256],sz[256];
GetPlayerPos(playerid,gpX,gpY,gpZ);
format(string,sizeof(string),"%.0f",gpX);
format(str,sizeof(str),"%.0f",gpY);
format(sz,sizeof(sz),"%.0f",gpZ);
dini_Set(MSN, "PosX", string);
dini_Set(MSN, "PosY", str);
dini_Set(MSN, "PosZ", sz);
return 0;
}
BE PATIENCE ! Don't double post !
Passed just 40 minutes. ::)
I mean that the system as it is bugged that sends me to another place
I mean that the system as it is bugged that sends me to another place
WN con letras grandes.... copias todo lo que usa dilson por eso no te ayuda....Es facil ver tu problema xD
I mean that the system as it is bugged that sends me to another place
WN con letras grandes.... copias todo lo que usa dilson por eso no te ayuda....Es facil ver tu problema xD
[pawn]public OnPlayerDisconnect(playerid, reason)
{
new file[256];
format(file, sizeof(file), REGISTERS, gPlayers[playerid]);
GetPlayerPos(playerid, CoordX[playerid], CoordY[playerid], CoordZ[playerid]);
dini_FloatSet(file, "pY", CoordY[playerid]);
dini_FloatSet(file, "pZ", CoordZ[playerid]);
dini_FloatSet(file, "pX", CoordX[playerid]);
}
return 1;
}[/pawn]
[pawn]public OnPlayerSpawn(playerid,classid,teamid)
{
SetPlayerPos(playerid, dini_Float(file, "pY"), dini_Float(file, "pX"), dini_Float(file, "pZ"),0,0);
return 1;
}[/pawn]
[pawn]
new Float:CoordX[MAX_PLAYERS]; // Definicion de la locacion a guardar
new Float:CoordY[MAX_PLAYERS];
new Float:CoordZ[MAX_PLAYERS];
[/pawn]
[pawn]public OnPlayerDisconnect(playerid, reason)
{
new file[256];
format(file, sizeof(file), REGISTERS, gPlayers[playerid]);
GetPlayerPos(playerid, CoordX[playerid], CoordY[playerid], CoordZ[playerid]);
dini_FloatSet(file, "pY", CoordY[playerid]);
dini_FloatSet(file, "pZ", CoordZ[playerid]);
dini_FloatSet(file, "pX", CoordX[playerid]);
}
return 1;
}[/pawn]
[pawn]public OnPlayerSpawn(playerid,classid,teamid)
{
SetPlayerPos(playerid, dini_Float(file, "pY"), dini_Float(file, "pX"), dini_Float(file, "pZ"),0,0);
return 1;
}[/pawn]
[pawn]
new Float:CoordX[MAX_PLAYERS]; // Definicion de la locacion a guardar
new Float:CoordY[MAX_PLAYERS];
new Float:CoordZ[MAX_PLAYERS];
[/pawn]
Prueba aver que tal te funciona //la primera vez que des spawn apareceras dentro del campo de golf "porke no tiene definida una loc, pero al desconectart te la creara" intenta no desconectarte en el mar o en el aeropuerto porke te manda a otras locs