16.11.2011, 21:20
Mano, olha como eu fiz o Pedagio:
Ai tem o public ColseGate1/2, new Gate1/2, CreateObject e SetTimer '-'
@EDIT Sem esquecer o forward
pawn Код:
public IsPlayerAtToll()
{
for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,828.90002441406,-2046.8409423828,12.89999961853))
{
SetObjectRot(Gate1,0,0,0);
SendClientMessage(playerid, COR_ROXO, "Vocк Pagou o Pedagio e a Cancela se Abriu.");
SendClientMessage(playerid, COLOR_RED, "-$500");
GivePlayerMoney(playerid, -500);
SetTimerEx("CloseGate", 5000, false, "i", Gate1);
}
}
for(new playerid=0; playerid<MAX_PLAYERS; playerid++)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,843.3994140625,-2060.498046875,12.89999961853))
{
SetObjectRot(Gate2,0,0,0);
SendClientMessage(playerid, COR_ROXO, "Vocк Pagou o Pedagio e a Cancela se Abriu.");
SendClientMessage(playerid, COLOR_RED, "-$500");
GivePlayerMoney(playerid, -500);
SetTimerEx("CloseGate2", 5000, false, "i", Gate2);
}
}
return 1;
}
@EDIT Sem esquecer o forward