07.08.2009, 18:07
So, i can make i tele and it work's, but when i make other, the first vanish. Even if I make them to other script. So why?
#include <a_samp>
new tmac;
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
tmac = SetPlayerCheckpoint(playerid, 1497.0416, -687.8960, 95.5633, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(tmac == 1)
{
SetPlayerInterior(playerid,12);
SetPlayerPos(playerid,2324.4199,-1147.5400,1050.7101);
}
return 1;
}
#include <a_samp>
new tmac2;
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
tmac2 = SetPlayerCheckpoint(playerid, 2324.7576, -1149.0542, 1050.7101, 3.0);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(tmac2 == 1)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1496.8420,-691.8549,94.7500);
}
return 1;
}