onplayerspawn
#1

Hi,

When this callback called, i could get player pos, or i need set timer?
Reply
#2

Well, try with GetPlayerPos and print it in the console, then you'll know if it works, if not, try with timer.
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)