Is it possible?
#1

Is it possible to add a position saving function in gf gamemode?If yes please give me the code
Reply
#2

it is automatic in samp , just do /save [something that reminds you what you saved]
Reply
#3

Quote:
Originally Posted by BiG_Sm0k3
it is automatic in samp , just do /save [something that reminds you what you saved]
Theres that, but if you mean saving a position for a player during his session then resetting him to it within a single position then create a float for X Y Z then create a command to write the players position to the floats using GetPlayerPos, for example.

Код:
new Float:x;
new Float:y;
new Float:z;

if(strcmp, "/savepos", cmdtext)
{
GetPlayerPos(playerid, x, y, z);
return 1;
}

if(strcmp, "/goback", cmdtext)
{
SetPlayerPos(playerid, x, y, z);
return 1;
}
Thats not exact, but in theory it should work, haven't scripted in a while and felt liek I would help. If a player uses /savepos he can then go back there by using /goback.

Wazza
Reply
#4

I want the player to spawn to the same place after crash or logout
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)