Need help!
#1

Because i am new i need help on 1 litle pawn code:
if (strcmp("/parking", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0,1378.5527,-1878.5848,13.3010))
if(IsPlayerInAnyVehicle(playerid))
MoveObject(rampa,1378.8427734375, -1882.046875, 8.424617767334,10);
SendClientMessage(playerid, 0xFFFFFFAA, "Platili ste parking,sada parkirajte svoje vozilo!");
GivePlayerMoney(playerid,-10);
}
if (strcmp("/pizlaz", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,1370.8451,-1883.7241,13.5184))
if(IsPlayerInAnyVehicle(playerid))
MoveObject(rampa2,1370.236328125, -1880.978515625, 8.2246170043945,10);
SendClientMessage(playerid, 0xFFFFFFAA, "Hvala sto ste koristili nase usluge parkiranja!");
}
when i use the comand /parking in any place than i see the message and it takes me 10 $ how can i fix it
that only send the message and take the money on the IsPlayerInRangeOfPoint

sorry for bad english!
Reply


Messages In This Thread
Need help! - by Pasa - 25.06.2011, 09:45
Re: Need help! - by Lorenc_ - 25.06.2011, 09:47
Re: Need help! - by Pasa - 25.06.2011, 09:49
Re: Need help! - by Cameltoe - 25.06.2011, 09:52
Re: Need help! - by Wesley221 - 25.06.2011, 09:55
Re: Need help! - by Pasa - 25.06.2011, 10:02
Re: Need help! - by Pasa - 25.06.2011, 10:08
Re: Need help! - by Cameltoe - 25.06.2011, 10:11

Forum Jump:


Users browsing this thread: 1 Guest(s)