Not Work...
#8

pawn Код:
new Stats = 0;

forward CheckBall();

SetTimer("CheckBall", 1000, 1);

public OnPlayerCommandText(playerid, cmdtext[]) {
if(strcmp(cmd, "/CreateBall", true) == 0)
{
Stats = 1;
new Float:X, Float:Y, Float:Z;
DestroyObject(Ball);
GetXYZInFrontOfPlayer_ROT(playerid, X, Y, Z, 0.5, 0.0, 0);
Ball = CreateObject(OBJECTBALL, X, Y, Z -0.5, 359.0, 93.0, 10.0);
return 1;
}
}

public CheckBall()
{
if(Stats == 1)
{
if(IsObjectInArea(Ball, 2540.7649,-1514.6029, 2500.8064,-1546.1082))
{
SendClientMessageToAll(COLOR_GREEN, "Ball in Area! ");
}

if(!IsObjectInArea(Ball, 2540.7649,-1514.6029, 2500.8064,-1546.1082))
{
SendClientMessageToAll(COLOR_RED, "Ball not in Area! ");
}
}
}
I didn't add the scripts for playing (It isn't completed)

****** you mean this?
Reply


Messages In This Thread
Not Work... - by Bogdanovic - 26.02.2011, 08:59
Re: Not Work... - by Mean - 26.02.2011, 09:16
Re: Not Work... - by Bogdanovic - 26.02.2011, 09:34
Re: Not Work... - by Bogdanovic - 26.02.2011, 10:18
Re: Not Work... - by Bogdanovic - 26.02.2011, 11:47
Re: Not Work... - by MadeMan - 26.02.2011, 12:29
Re: Not Work... - by Bogdanovic - 26.02.2011, 14:51
Re: Not Work... - by Bogdanovic - 26.02.2011, 19:39
Re: Not Work... - by MadeMan - 26.02.2011, 19:57
Re: Not Work... - by Bogdanovic - 26.02.2011, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)