25.06.2011, 09:55
pawn Код:
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);
}
} else return SendClientMessage(playerid, 0xFFFFFFAA, "Your weird language text in here if hes not in range");
return 1;
}
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!");
}
} else return SendClientMessage(playerid, 0xFFFFFFAA, "Same if hes not in range");
return 1;
}