Simple help
#1

Hello!

I have made a simple cmd to only use at special coords.
But i dont know how to define if a player is at the positions

i put this before the coords, i know its wrong, but just so you get my point.
pawn Код:
if IsPlayerAtPos(playerid,
And i hope i made the coords the right way to?
Code
pawn Код:
CMD:repair(playerid, params[])
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if IsPlayerAtPos(playerid, 405.1276,2453.0115,16.5000 || 1619.4607,1337.4252,10.8095 || 1874.7584,-2288.3972,14.2586 || -1363.8220,-488.4260,14.8779);
    RepairVehicle(GetPlayerVehicleID(playerid));
    SetVehicleHealth(vehicleid, 1000.0);
    SendClientMessage(playerid, COLOR_GREEN, "The vehicle has been repaired.");
    return 1;
}
Reply


Messages In This Thread
Simple help - by cruising - 08.04.2011, 03:49
Re: Simple help - by [DJ]Boki - 08.04.2011, 05:23
Re: Simple help - by Prumpuz - 08.04.2011, 05:32
Re: Simple help - by cruising - 08.04.2011, 12:51
Re: Simple help - by [DJ]Boki - 08.04.2011, 12:53
AW: Re: Simple help - by xerox8521 - 08.04.2011, 12:54
Re: Simple help - by cruising - 08.04.2011, 13:15
Re: AW: Re: Simple help - by cruising - 08.04.2011, 13:23

Forum Jump:


Users browsing this thread: 5 Guest(s)