MyFunction:: Contando(playerid)
{
new string[256];
if(SegundosContagem[playerid] > 0)
{
SegundosContagem[playerid]--;
SetTimerEx("Contando",1000,0,"d",playerid);
return 1;
}
else
{
SegundosContagem[playerid] = 0;
Hospital[playerid] = 0;
SetPlayerInterior(playerid, 0);
OnPlayerSpawn(playerid);
TogglePlayerSpectating(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerHealth(playerid, 100.0);
if(PlayerInfo[playerid][pGang] == 1)
{
SetPlayerPos(playerid, 1473.1873,-730.2170,93.2840);
return 1;
}
return 1;
}
}
MyFunction:: Contando(playerid)
{
new string[256];
if(SegundosContagem[playerid] > 0)
{
SegundosContagem[playerid]--;
SetTimerEx("Contando",1000,0,"d",playerid);
return 1;
}
else
{
SegundosContagem[playerid] = 0;
Hospital[playerid] = 0;
SetPlayerInterior(playerid, 0);
OnPlayerSpawn(playerid); <<Aqui o player spawnara na HQ/SPAWN CIVIL/HQ DE EMPREGO
TogglePlayerSpectating(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerHealth(playerid, 100.0);
if(PlayerInfo[playerid][pGang] == 1)
{
SetPlayerPos(playerid, 1473.1873,-730.2170,93.2840); <<Aqui o player spawnara no local definido por voce, ou seja, na frente do hospital.
return 1;
}
return 1;
}
}
OnPlayerSpawn(playerid);

MyFunction:: Contando(playerid)
{
new string[256];
if(SegundosContagem[playerid] > 0)
{
SegundosContagem[playerid]--;
SetTimerEx("Contando",1000,0,"d",playerid);
return 1;
}
else
{
SegundosContagem[playerid] = 0;
Hospital[playerid] = 0;
SetPlayerInterior(playerid, 0);
TogglePlayerSpectating(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerHealth(playerid, 100.0);
SetPlayerPos(playerid, 1473.1873,-730.2170,93.2840);
return 1;
}
return 1;
}
}
|
Eu peguei uma coordenada qualquer, tipo fui num lugar e dei /save sу para pegar coord e coloquei po
|