17.09.2012, 06:51
This?
pawn Код:
if(PRESSED(KEY_SECONDARY_ATTACK))
{
if(IsPlayerInRangeOfPoint(playerid,0.5,298.0384, -107.4380, 1001.4934))
{
SetPlayerCameraPos(playerid, 297.2552, -105.8125, 1003.5679);
SetPlayerCameraLookAt(playerid, 297.6054, -106.7477, 1002.9686);
TogglePlayerControllable(playerid,0);
}
}
else if(PRESSED(KEY_YES) && InsideAmmu[playerid] ==1 )
{
GivePlayerWeapon(playerid,31,500);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid,1);
}