11.12.2011, 20:57
que posiзгo й essa ?
Seria melhor vocк ir e da /save no local e pegar a posiзгo x,y,z e colocar ai do que usar a posiзгo de um objeto!
tenta ae
PHP код:
if(IsPlayerInRangeOfPoint(i, 7.0, 65.922424316406, -1541.4698486328,4.5561060905457))
cruzes
65.922424316406, -1541.4698486328,4.5561060905457
x y z
tenta ae
PHP код:
//topo do gamemode
forward peda();
//public OnGameModeInit
SetTimer("peda", 1000, 1);
//final do gm
public peda()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 7.0, x,y,z))//troque x,y,z pela posiзгo do local aonde fica o pegadio use /save para pegar!
{
new string[50];
format(string, sizeof(string), "~g~Pedagio ~r~Pago: ~b~$200");
GameTextForPlayer(i, string, 3000, 4);
GivePlayerMoney(i, - 200);
}
}
return 1;
}