12.03.2013, 18:30
I made these commands to be able to load my armory but they dont work like i want them to do..
When i type /loadarmory and i am trucker it say im not trucker, if i use the cars that i put it say that i cant deliver with that car.. Here is the code
When i type /loadarmory and i am trucker it say im not trucker, if i use the cars that i put it say that i cant deliver with that car.. Here is the code
pawn Код:
if(strcmp(cmd, "/loadarmory", true) == 0)
{
if(PlayerInfo[playerid][pJob] == 16)
{
if(PlayerInfo[playerid][pArmoryrefill] == 0)
{
new tmpcar = GetPlayerVehicleID(playerid);
if(IsPlayerInRangeOfPoint(playerid, 2,-65.3189,-1119.7914,1.0781))
{
if(GetVehicleModel(tmpcar) == 456 || GetVehicleModel(tmpcar) == 440 || GetVehicleModel(tmpcar) == 514 || GetVehicleModel(tmpcar) == 578 || GetVehicleModel(tmpcar) == 403 || GetVehicleModel(tmpcar) == 515)
{
SendClientMessage(playerid, TEAM_GROVE_COLOR, "You have loaded your truck with armory equipment!");
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "* The Government have paid the bill for loading armory equipment.");
PlayerInfo[playerid][pArmoryrefill] = 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are NOT a Trucker");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are NOT at the Armory loading place!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You can't load with this vehicle!");
}
return 1;
}