04.10.2009, 14:50
You see I'm working on a samp server and I'm just now learning the pwn language, and when I was looking through it i found this.
public OnPlayerSpawn(playerid)
{
SetPlayerTime(playerid, h, minuty);
SetPlayerInterior(playerid,0);
ClearAnimations(playerid);
if(ded[playerid]==1)
{
SetPlayerPos(playerid, dedpos[playerid][0], dedpos[playerid][1], dedpos[playerid][2]);
ded[playerid]=0;
}
SetPlayerWorldBounds(playerid, 6666.6666, -6666.6666, 6666.6666, -6666.6666);
DisablePlayerCheckpoint(playerid);
SetTimerEx("PlayerObjectUpdate", 100, 1, "d", playerid);
return 1;
}
And what I wanted to ask is how do i find out the coordinates for where my player is standing?
Because i want to set where my player spawns somewhere else.
public OnPlayerSpawn(playerid)
{
SetPlayerTime(playerid, h, minuty);
SetPlayerInterior(playerid,0);
ClearAnimations(playerid);
if(ded[playerid]==1)
{
SetPlayerPos(playerid, dedpos[playerid][0], dedpos[playerid][1], dedpos[playerid][2]);
ded[playerid]=0;
}
SetPlayerWorldBounds(playerid, 6666.6666, -6666.6666, 6666.6666, -6666.6666);
DisablePlayerCheckpoint(playerid);
SetTimerEx("PlayerObjectUpdate", 100, 1, "d", playerid);
return 1;
}
And what I wanted to ask is how do i find out the coordinates for where my player is standing?
Because i want to set where my player spawns somewhere else.