23.08.2012, 15:22
This is the code:
Instead of "ID0", it will check if any play is online, it doesn't matter who. Just if any player is connected it will work. Can anyone help me with it?
PHP код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerConnected(0)) // <-- This
{
SetTimer("startgm",100,false);
}
else
{
return 0;
}
}