20.03.2012, 22:43
Pessoal mais uma duvida, eu tenho esse Script:
Pra mim coloca-lo no GM, eu preciso de colocar mais algum cуdigo? Ou й sу colocar e pronto, funciona?
pawn Код:
public peda()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 7.0,59,-1539.1999511719,4)) // PEDAGIO PONDE SF-LS
{
GameTextForPlayer(i, "Pedбgio pago", 3000, 4);
SendClientMessage(i,0xA90000FF,"BT: Vocк passou pelo pedбgio SF>LS e pagou R$174!");
GivePlayerMoney(i,-174);
}
if(IsPlayerInRangeOfPoint(i, 7.0,60.200000762939,-1526.1999511719,3.9000000953674))
{
GameTextForPlayer(i, "Pedбgio pago", 3000, 4);
SendClientMessage(i,0xA90000FF,"BT: Vocк passou pelo pedбgio LS>SF e pagou R$234!");
GivePlayerMoney(i,-234);
}
if(IsPlayerInRangeOfPoint(i, 7.0,-10.60000038147,-1363.3000488281,10.10000038147)) //PEDAGIO ESTRADA LS-SF
{
GameTextForPlayer(i, "Pedбgio pago", 3000, 4);
SendClientMessage(i,0xA90000FF,"BT: Vocк passou pelo pedбgio SF>LS e pagou R$190!");
GivePlayerMoney(i,-190);
}
if(IsPlayerInRangeOfPoint(i, 7.0,-22.299999237061,-1344.8000488281,10.300000190735))
{
GameTextForPlayer(i, "Pedбgio pago", 3000, 4);
SendClientMessage(i,0xA90000FF,"BT: Vocк passou pelo pedбgio LS>SF e pagou R$280!");
GivePlayerMoney(i,-280);
}
if(IsPlayerInRangeOfPoint(i, 7.0,1659.1999511719,-103.19999694824,34.5))//PEDAGIO LS-LV ESTRADA
{
GameTextForPlayer(i, "Pedбgio pago", 3000, 4);
SendClientMessage(i,0xA90000FF,"BT: Vocк passou pelo pedбgio LV>LS e pagou R$310!");
GivePlayerMoney(i,-310);
}
if(IsPlayerInRangeOfPoint(i, 7.0,1659.0999755859,-103.69999694824,34.5))
{
GameTextForPlayer(i, "Pedбgio pago", 3000, 4);
SendClientMessage(i,0xA90000FF,"BT: Vocк passou pelo pedбgio LS>LV e pagou R$290!");
GivePlayerMoney(i,-290);
if(IsPlayerInRangeOfPoint(i, 7.0,-163.80000305176,396.60000610352,11.39999961853))
{
GameTextForPlayer(i, "Pedбgio pago", 3000, 4);
SendClientMessage(i,0xA90000FF,"BT: Vocк passou pelo pedбgio Bone County / LS e pagou R$145!");//PEDAGIO BONE COUNTY / LS
GivePlayerMoney(i,-145);
}
if(IsPlayerInRangeOfPoint(i, 7.0,-329.20001220703,-2134,41.099998474121))
{
GameTextForPlayer(i, "Pedбgio pago", 3000, 4);
SendClientMessage(i,0xA90000FF,"BT: Vocк passou pelo pedбgio Monte Chiliad / LS e pagou R$145!");//PEDAGIO MONTE CHILIAD / LS
GivePlayerMoney(i,-145);
if(IsPlayerInRangeOfPoint(i, 7.0,-618.29998779,647.40002441,16.60000038)) //PEDAGIO ESTRADA LV/SF
{
GameTextForPlayer(i, "Pedбgio pago", 3000, 4);
SendClientMessage(i,0xA90000FF,"BT: Vocк passou pelo pedбgio SF>LV e pagou R$259!");
GivePlayerMoney(i,-259);
}
if(IsPlayerInRangeOfPoint(i, 7.0,-640.09997559,663.00000000,16.20000076))
{
GameTextForPlayer(i, "Pedбgio pago", 3000, 4);
SendClientMessage(i,0xA90000FF,"BT: Vocк passou pelo pedбgio LV>SF e pagou R$239!");
GivePlayerMoney(i,-239);
}
}
return 1;
}