GetPVarInt(playerid,"xpos");
GetPVarInt(playerid,"ypos");
GetPVarInt(playerid,"zpos");
SetPlayerPos(playerid,xpos,ypos,zpos);
Wenn ich das Mache komm undefinded xpos undso aber kann der das nicht auslesen ? So speicher ich das!
+timer
forward SavePos(playerid);
public SavePos(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z); // Get the players position
SetPVarFloat(playerid,"xpos",x); // Save the float into a player variable
SetPVarFloat(playerid,"ypos",y); // Save the float into a player variable
SetPVarFloat(playerid,"zpos",z); // Save the float into a player variable
return 1;
}