12.03.2013, 18:51
Okey, Well did i mess this command up too?
pawn Код:
if(strcmp(cmd, "/unloadarmory", true) == 0)
{
if(PlayerInfo[playerid][pJob] == 16)
{
if(PlayerInfo[playerid][pArmoryrefill] == 1)
{
new tmpcar = GetPlayerVehicleID(playerid);
if(IsPlayerInRangeOfPoint(playerid, 2,1567.2455,-1691.3341,5.8906))
{
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] = 0;
SafeGivePlayerMoney(playerid, 2500);
Armory[ARMOUR] = 15;
Armory[MP5] = 20;
Armory[SHOTGUN] = 20;
Armory[SHIELD] = 15;
}
}
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;
}