11.03.2009, 09:28
hello, im having a small problem with my truck job script.
i wanted to add an
but like this is wont work:
does anyone have an idea how to get this working?
i wanted to add an
Код:
if(PlayerToPoint(1.5,playerid,-1834.4691, 129.1151, 15.1171))
Код:
if(!strcmp("/buyprod", cmdtext, true,9))
{
if(PlayerToPoint(1.5,playerid,-1834.4691, 129.1151, 15.1171))
{
SendClientMessage(playerid, COLOR_RED, "You have to be at the truck station");
}
{
if(!IsPlayerInVehicle(playerid, truck1))
{
SendClientMessage(playerid, COLOR_RED, "You have to be in a truck!");
}
else if(GetPlayerMoney(playerid) >= 500)
{
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, COLOR_CYELLOW, "You have bought products for $500.");
AttachTrailerToVehicle(trailer1,truck1);
}
else
{
SendClientMessage(playerid, COLOR_CYELLOW, "You dont have $500!");
}
return 1;
}
return 0;
}

