[Include] functions.inc - Adds new natives for scripters.
#4

Quote:
Originally Posted by OneDay
Посмотреть сообщение
They are not natives only plugins add natives. and this is wrong: 0<=plaerid<=MAX_PLAYERS

why not:

PHP код:

stock bool
:IsPlayerPassengerAiming(playerid)
{    
    return 
GetPlayerCameraMode(playerid) == 55 && 22 <= GetPlayerWeapon(playerid) <= 38 && GetPlayerState(playerid) == PLAYER_STATE_PASSENGER;

What's wrong with the current method, though?

Anyway I don't think natives are just added by plugins.

I'm also not sure why this is wrong -
Код:
 0<=playerid<=MAX_PLAYERS
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)