04.06.2011, 21:56
Topo do GameMode
public OnGameModeInit
Em Qualquer Parte Do GameMode Estando Fora De Qualquer Public
PS: nгo se pode ter publics e variaveis com o mesmo nome =)
pawn Код:
new PPortaoBallas;
forward PortaoBallas();
pawn Код:
SetTimer("PortaoBallas", 200, true);
PPortaoBallas = CreateObject(980, 2165.1608886719, -1135.7752685547, 27.127239227295, 0, 0, 269.99996948242);
pawn Код:
public PortaoBallas()
{
for(i=0;i<MAX_PLAYERS;++i)
{
if( gTeam[i] == time_balla)
{
if(IsPlayerInRangeOfPoint(i,15.0,2165.1608886719, -1135.7752685547, 27.127239227295))
{
MoveObject(PPortaoBallas, 2163.6125488281, -1141.2938232422, 26.861921310425, 2);
}
else
{
MoveObject(PPortaoBallas,2165.1608886719, -1135.7752685547, 27.127239227295, 2);
}
}
}
return true
}