24.05.2016, 20:00
Hello, i was in some server the other day and everytime when i died, when i spawned i cannot saw nobody till some some time (like 5 seconds) Itґs that possible to make?
#define UNIQUE_VWORLD 4999 public OnPlayerSpawn(playerid) { SetPlayerVirtualWorld(playerid, UNIQUE_VWORLD + playerid); return 1; }
public OnPlayerSpawn(playerid)
{
SetPlayerVirtualWorld(playerid, 10000);
SetTimerEx("DefaultWorld", 5000, false, "i", playerid);// 5000 => 5000 MS ( 5 second )
}
forward DefaultWorld(playerid);
public DefaultWorld(playerid);
{
SetPlayerVirtualWorld(playerid, 0);
return 1;
}