01.02.2014, 00:42
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/OnPlayerDeath
https://sampwiki.blast.hk/wiki/OnPlayerSpawn
https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/OnPlayerDeath
https://sampwiki.blast.hk/wiki/OnPlayerSpawn
pawn Код:
#include <a_samp>
new Float:VidaPlayer[MAX_PLAYERS][3];
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, VidaPlayer[playerid][0], VidaPlayer[playerid][1] VidaPlayer[playerid][2]);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
GetPlayerPos(playerid, VidaPlayer[playerid][0], VidaPlayer[playerid][1] VidaPlayer[playerid][2]);
return 1;
}