29.07.2010, 18:15
pawn Код:
public tunetimer()
{
PlayerPlaySound(playerid,1062,-3359.1,3008.2,1.7);
}
pawn Код:
forward tunetimer();
and
SetTimer("tunetimer",5000,false);
public tunetimer()
{
PlayerPlaySound(playerid,1062,-3359.1,3008.2,1.7);
}
forward tunetimer();
and
SetTimer("tunetimer",5000,false);
public tunetimer() { PlayerPlaySound(1062,-3359.1,3008.2,1.7); } |
public tunetimer(playerid)
{
PlayerPlaySound(playerid,1062,-3359.1,3008.2,1.7);
}
forward tunetimer(playerid);
and
SetTimer("tunetimer",5000,false);
public
OnGameModeInit()
{
SetTimer("tunetimer", 5000, true);
return 1;
}
forward
tunetimer();
public
tunetimer()
{
// for(new i, g_m = GetMaxPlayers(); i < g_m; i++) if(IsPlayerConnected(i))
foreach(Player, i)
{
PlayerPlaySound(i, 1062, 0.0, 0.0, 0.0);
}
return 1;
}
public
OnPlayerConnect(playerid)
{
SetPVarInt(playerid, "KillTimer", SetTimerEx("tunetimer", 5000, true, "d", playerid));
return true;
}
public
OnPlayerDisconnect(playerid)
{
KillTimer(GetPVarInt(playerid, "KillTimer"));
return true;
}
forward
tunetimer(playerid);
public
tunetimer(playerid)
{
PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
return 1;
}