22.11.2010, 17:48
But listen,for this kind of scripts,you better use Pickups!
here is the script:
here is the script:
pawn Код:
new Ammupickup;
public OnGameModeInit()
Ammupickup = CreatePickup(1242, 23, 1503.3359, 1432.3585, 10.1191, -1);
public OnPlayerPickupPickup(playerid, pickupid)
{
if ( pickupid == Ammupickup )
{
ShowMenuForPlayer(wepmenu, playerid);
TogglePlayerControllable(playerid,0);
ClearAnimations(playerid);
SetPlayerFacingAngle(playerid, 178.8904);
SetCameraBehindPlayer(playerid);
}
return 1;
}