spawn command with save+autoload
#1

Can please anyone show me how to make /spawn command?

When player use /spawn then save player current position, if player died then spawn back where he use /spawn. Then If player disconnect to the server after he went back to server spawn him back again in the same position where he used /spawn.

Additional to that if /rspawn - then reset player spawn to normal spawn points. And is it possible to always setplayer virtual world to 0 ? Dont use Getplayervirtualworld.



Anyway Im using y_ini saving system.
Reply
#2

pawn Код:
new Float:pPos[3];

//spawn command
if(pPos[0] = 0 & pPos[1] = 0 & pPos[2] = 0)
{
GetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]);
}else{
SetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]);
}
no saving
Reply
#3

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
pawn Код:
new Float:pPos[3];

//spawn command
if(pPos[0] = 0 & pPos[1] = 0 & pPos[2] = 0)
{
GetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]);
}else{
SetPlayerPos(playerid,pPos[0],pPos[1],pPos[2]);
}
no saving
how about the command /spawn? thanks alot but still need the saving.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)