Jump to content
  • 0

Question

Posted

Cum as putea face cand un player s-a deconectat de pe server sa ii se salveze pozitia X, Y, Z iar cand se conecteaza iar sa fie exact in locul unde a fost deconectat

?q=192&s=s&bg1=5eeb06&bg2=3a7bfc&t=000&gl=fff&b=000000&gbg=000

1 answer to this question

Recommended Posts

Posted

adaugi in database...daca esti pe sqlite si cand se deconnecteaza pui la OnPlayerDisconnect getpos x,y,z ... dp faci sa se scrie in db...cand intra la OnPlayerConnect pui sa ia pozitia din db...dp SetPlayerPos alea alea...acuma sunt cam agitat nu pot sa explic tot...

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.