02.12.2011, 05:30
tente assim:
pawn Код:
new pedagio[MAX_PLAYERS];
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0,62.5154,-1533.2170,5.1818))
{
if(pedagio[playerid] == 0)
{
new string[50];
format(string, sizeof(string), "Pegбgio pago: 25 reais!");
GameTextForPlayer(playerid, string, 3000, 4);
GivePlayerMoneyEx(playerid, -25);
pedagio[playerid] = 1;
}
}
else pedagio[playerid] = 0;
return 1;
}