09.07.2012, 09:54
Now I've did this:
Under OnGameModeInit:
And the forward is this:
Don't work...
Under OnGameModeInit:
Код:
SetTimer("conto2", 2500, true);
Код:
forward conto2();
public conto2()
{
new Float:X, Float:Y, Float:Z;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerInArea(i,-555.0,0106.0,-553.0,0100.0))
{
GetPlayerPos(i,X, Y, Z);
CreateExplosion(X, Y, Z-4, 10, 10.0); return SendClientMessage(i,0xFF0000AA, "Nice Jump!");
}
}
return 1;
}
stock IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY) {
return 1;
}
return 0;
}

