onplayerspawn - 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)
+--- Thread: onplayerspawn (
/showthread.php?tid=621333)
onplayerspawn -
MerryDeer - 09.11.2016
Hi,
When this callback called, i could get player pos, or i need set timer?
Respuesta: onplayerspawn -
Ner0x96 - 09.11.2016
Well, try with GetPlayerPos and print it in the console, then you'll know if it works, if not, try with timer.
Re: onplayerspawn -
DTV - 10.11.2016
GetPlayerPos should work fine with OnPlayerSpawn. If you're not sure what to do:
pawn Код:
public OnPlayerSpawn(playerid)
{
new Float:x,Float:y,Float:z; //float variables that will store the player's coords
GetPlayerPos(playerid,x,y,z); //gets the coords and stores them in the float variables
//other code here
return 1;
}