SA-MP Forums Archive
Still spawns. o.O - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Still spawns. o.O (/showthread.php?tid=169288)



Still spawns. o.O - iLcke - 19.08.2010

Alright, i started making a new script. (Gamemode, yay, might release later if not in use.)

Код:
if(fexist(string))
{
gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_RED, "SERVER: That name is already registered! Please login, or get a new name.");
return 1;
}
GivePlayerMoney(playerid, 1000);
SetPlayerInterior(playerid,0);
SetPlayerRandomSpawn(playerid);
return 1;
}
Idk.. it sends the message, and sets there spawn near a farm? which the spawns aint even there.
ideas?


Re: Still spawns. o.O - Backwardsman97 - 19.08.2010

Spawning you near a farm usually means it spawned you at the coordinates 0, 0, 0 which means there must be an error in your SetPlayerRandomSpawn function.