25.06.2016, 20:21
i cant see actor inside of ammunation .. but whhen i press y at /save positon funcsions work .. what happen?
i have other actor at bank but it work good
i have other actor at bank but it work good
PHP Code:
new Actor_Ammu_1;//South East Last Venturas Ammunation
PHP Code:
public OnGameModeInit()
{
Actor_Ammu_1 = CreateActorEx(179, 296.0932, -82.5283,1001.5156,0.2900, 4, ""WHITE"Press "YELLOW"Y "WHITE"For "CYAN"Ammunation Services");
PreloadActorAnimations(Actor_Ammu_1);
return 1;
}
PHP Code:
stock InRangeOfAmmuActors(playerid)
{
if (IsPlayerInRangeOfActor(playerid, Actor_Ammu_1))
{
return 1;
}
return 0;
}
PHP Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & 65536)
{
if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
if (InRangeOfAmmuActors(playerid))
{
SHOW_WEAPONS(playerid);
}
}
}
return 0;
}
PHP Code:
Pickup Info
new PickupInfo[][pkp_info] =
{
{0.0,0.0,0.0,0,0,0,0.0,0.0,0.0,0.0,0.0,0,0,0.0,0.0,0.0,0.0,"",""},
{2159.198486, 943.265502, 10.820312, PKP_TYPE_ENTRY, BUS_TYPE_AMMUNATION, 18, 10.0 ,285.801147, -83.322227, 1001.515625, 358.410034 ,4,132 ,2154.705810, 943.267089, 10.820312, 91.888031, "Ammunation" ,"South East Las Venturas"},