[Include] easy Functions v0.5
by Dima-kun(Morino_Reigan)
!    SA-MP 0.3c  .
:
        pawn,     ,   .        .

:
1.c .
2.C d_funcs.inc   pawno\includes
3.   #include <d_funcs>
4. public OnPlayerConnect   e_onPlayerConnect( playerid );
5. public OnPlayerDisconnect   e_OnPlayerDisconnect( playerid );
6.  public OnDialogResponse   hideDialog( playerid );
7..

     :

1.setPlayerSkillLevel(playerid,types,skil) -    . 
:
playerid - ID ,     .
types -  (    FS ).
skill -     

    .

2.setPlayerSkillLevelToAll(types,skil) -      .
:
types -  (    FS ).
skill -     

    .

3.getPlayerSkillLevel(playerid,types) -       
:
playerid - ID ,     .
types -  (    FS ).

     ( ).

4.LockServer(bool:param) -  
:
bool:param - \  (true\false)

    

5. getGameModeText() -    .
    .

   .

6.getGravity() -   
    .

    .

7.getServerWeather() -  ID    
    .

  ID   .

8.getPlayerName(playerid) -   
:
playerid - ID ,     

   .

9.Float:getPlayerHealth(playerid) -      
:
playerid - ID ,      

     .

10.givePlayerHealth(playerid, Float:health) -    
:
playerid - ID ,    
Float:health -  

    .

11.getPlayerIP(playerid) -  IP- 
:
playerid - ID ,     IP-

  IP- 

12.getPlayerID(name[]) - ID   .
:
name[] - (!) 

  ID  .

13.setPlayerColorForAll(color) -      
:
color - (Hex)

    .

14.setPlayerPosEx(playerid,Float:x,Float:y,Float:z,Float:FacingAngle,interior=0,virtual=0) -       .
:
playerid - ID ,      
Float:x -  
Float:y -  Y
Float:z -  Z
Float:FacingAngle -   
interior - ID (  )
virtual - ID  (  )

    

15.getPlayerPosEx(playerid,&Float:x,&Float:y,&Float:z,&Float:FacingAngle,&interior,&virtual) -      ,  ,   

playerid - ID 
Float:x -  
Float:y -  Y
Float:z -  Z
Float:FacingAngle -   
interior - ID 
virtual - ID  

      , ID   ID  ,     .

16.createPlayer3DtextLableEx(playerid,text[],color,Float:x=0.0,Float:y=0.0,Float:z=0.7,Float:DrawDistance=100.0,virtual=0,testLOS=0) - ,   
:
playerid - ID ,     
text[] - (Text 3D)
color -  
Float:x -  
Float:y -  Y
Float:z -  Z 
Float:DrawDistance -  
virtual -  
testLOS -     .

    .        .

17.deletePlayer3DtextLableEx(playerid) -     .
:
playerid - ID 

    . 

18.updatePlayer3DtextLableEx(playerid,color,text[]) -     
:
playerid - ID 
color -  
text[] - 

    .

19.setAdminsColor(color) -         (  RCON-  ) RCON-
:
color - (Hex)

    .

20.getWeaponSlot(weaponid) -      ID .
:
weaponid - ID (0-50)

  ID .

21.getWeaponName(weaponid) -     
:
weaponid - ID (0-50)

      

22.loadFromFileAsInt(file[],stroka[]) -    "Hour 12",   .
:
file[] -  
stroka[] -   

       

23.loadFromFileAsFloat(file[],stroka[]) -    "Health 97.9224",   .
:
file[] -  
stroka[] -   

   c      

24.turnCarEngine(vehicleid, status) - \  
:
vehicleid - ID 
status - \  (1\0)

    .

25.isCarEngineRunned(vehicleid) -    .
:
vehicleid - ID 

  : 1 -  0 

26.turnCarLights(vehicleid, status) - \ 
:
vehicleid - ID 
status - \  (1\0)

    .

27.isCarLightsOn(vehicleid) -     
:
vehicleid - ID 

   : (1),  (0)

28.turnCarAlarm(vehicleid, status) - \   
:
vehicleid - ID 
status - \  (1\0)

    .

29.isCarAlarmActive(vehicleid) -   
:
vehicleid - ID 

   : (1),  (0)

30.turnCarDoors(vehicleid, status) - \   
:
vehicleid - ID 
status - \  (1\0)

    .

31.isCarDoorsOpen(vehicleid) -   
:
vehicleid - ID 

   : (1),  (0)

32.turnCarBonnet(vehicleid, status) - \  
:
vehicleid - ID 
status - \  (1\0)

    .

33.isCarBonnetOpen(vehicleid) -   
:
vehicleid - ID 

   : (1),  (0)

34.turnCarBoot(vehicleid, status) - \  
:
vehicleid - ID 
status - \  (1\0)

    .

35. isCarBootOpen(vehicleid) -   
:
vehicleid - ID 

   : (1),  (0)

36.turnCarObjective(vehicleid, status) -    
:
vehicleid - ID 
status - \  \ \ (1\0)

    .

37.isCarObjective(vehicleid) -    
:
vehicleid - ID 

   :  (1),   (0)

38.createVehicle3DtextLableEx(vehicleid,text[],color,Float:x=0.0,Float:y=0.0,Float:z=0.7,Float:DrawDistance=100.0,virtual=0,testLOS=0) -    
:
vehicleid - ID ,     
text[] - (Text 3D)
color -  
Float:x -  
Float:y -  Y
Float:z -  Z 
Float:DrawDistance -  
virtual -  
testLOS -     .

    .        .

39.deleteVehicle3DtextLableEx(vehicleid)  -     
:
playerid - ID 

    . 

40.updateVehicle3DtextLableEx(vehicleid,color,text[]) -    
:
vehicleid - ID 
color -  
text[] - 

    .

41.givePlayerArmour(playerid,Float:armour)-     ,       100,   .
:
playerid - ID 
Float:armour -  

    .

42.Float:getPlayerArmour(playerid) -     
:
playerid - ID 

      (Float)

43.clearChatToPlayer(playerid) -     
:
playerid - ID 

    .

44.clearChatToAll() -     ,   
 .

    .

45.randomEx(min,max) -       .
:
min -  ,   
max -  ,   

   ,   .

46.isPickupWeaponModel(modelid) -   ,      .
:
modelid -  

  1(true)  ,  0(false)  .

47.getFileInfo(filename[],&lines,&bytes) -     .
:
filename[] -  
lines -     
bytes -    ( )
     

48.getPlayerInfo(playerid,&Float:x,&Float:y,&Float:z,&Float:FacingAngle,&Float:health,&Float:armour,&pstate,&interior,&virtual,&skin,&team,&ping,&color)     
:
playerid - ID 
Float:x -  
Float:y -  Y
Float:z -  Z
Float:FacingAngle -   
Float:health - 
Float:armour - 
interior - ID 
virtual - ID  
skin - ID 
team - ID 
ping -  
color-  

   .

49.getVehicleInfo(vehicleid,&Float:x,&Float:y,&Float:z,&Float:RotateAngle,&Float:health,&interior,&virtual,&model) -    
:
vehicleid - ID 
Float:x -  
Float:y -  Y
Float:z -  Z
Float:RotateAngle -  
Float:health - 
interior - ID 
virtual - ID  
model-  

     .

50.setVehicleInterior(vehicleid,interior) -    
:
vehicleid - ID 
interior - ID 

    

51. getVehicleInterior(vehicleid) -      
:
vehicleid - ID 

  ID .

52.createTeleportPoint(teleportid,Float:x,Float:y,Float:z,Float:newx,Float:newy,Float:newz,Float:newFacingAngle,interior=0,virtual=0,bool:isvehicle=false) -   .
:
teleportid - ID  (  ! !       !)
Float:x -    
Float:y -  Y  
Float:z -  Z  
Float:newx -    
Float:newy -  Y  
Float:newz -  Z  
Float:newFacingAngle -  
interior - ID ( .  :0)
virtual - ID  ( .  :0)
bool:isvehicle -        (false)      (true)

    .

53.destroyTeleportPoint(tppointid) -   
:
teleportid - ID  

    .

54.isValidTeleportPoint(tppointid) -     .
:
teleportid - ID  

  1    0   .

55.updateTeleportPoint(e_ptp,Float:x,Float:y,Float:z,Float:newx,Float:newy,Float:newz,Float:newFacingAngle,interior=0,virtual=0,bool:isvehicle=false) -    
:
teleportid - ID  (    ID,   (-1))
Float:x -    
Float:y -  Y  
Float:z -  Z  
Float:newx -    
Float:newy -  Y  
Float:newz -  Z  
Float:newFacingAngle -  
interior - ID ( .  :0)
virtual - ID  ( .  :0)
bool:isvehicle -        (false)      (true)

    .

56.sendPersonalMessage(playerid,targetid,color,string[]) -      . 
:
playerid - ID  
targetid - ID  
color -  
string[] -  (   ! ..   )

    .

57. setRPNamesOnly() -     Non-RP 
   

    .

58.getVehicleName(vehicleid) -   .
:
vehicleid - ID 

   .

59. getNumPlayersOnline() -   ,   
   

    .

60.setVehiclePosEx(vehicleid,Float:x,Float:y,Float:z,Float:RotateAngle,interior=0,virtual=0) -   ,   
:
vehicleid - ID 
Float:x -  
Float:y -  Y
Float:z -  Z
Float:RotateAngle -   
interior - ID 
virtual - ID  

    .

61.StopVehicle(vehicleid) -   
:
vehicleid - ID    .

    .

62.GetVehicleSpeed(vehicleid) -   .
:
vehicleid - ID    .

    .

63.SetVehicleSpeed(vehicleid, Float:speed) -    .
:
vehicleid - ID .
Float:speed -  .

    .

64.SendFormatMessage(playerid,color,const format[],{Float,_}:...) -    
:
playerid - ID ,   
color -  
format[] - 
{Float,_}:... - 

    .

65.SendFormatMessageToAll(color,const format[],{Float,_}:...) -       .
:
color -  
format[] - 
{Float,_}:... - 

    .

67.strcharsplit(const string[], &index, seperator=' ') -  strtok,   
:
const string[] -    
&index -     
seperator=' ' - .
    seperator  seperator

68.givePlayerWeaponEx(playerid,{id}) -   .
:
playerid - ID ,    
{id} -  ,  ,  .
//  Stepashka,  sk47

69.Float:floatRandom(Float:val) -        0  val
:
Float:val -  

70.Float:floatRandomEx(Float:min,Float:max) -        min  max
:
Float:min -  
Float:max -  

71.bool:isAdminsOnline() -    -  rcon  
 true  , false  .

72.abs( num ) -    num
:
num -   .

73.getLastPlayerID() -   ID  .   .( )

74.preLoadAnim( const  playerid, animlib[] ) -      animlib.
:
playerid - ID     
animlib -  .

75.addVehicleComponentEx(vehicleid, {id}) -    
:
vehicleid - ID ,    
{id} -  ,     

76.removeVehicleComponentEx(vehicleid, {id}) -     
:
vehicleid - ID ,    
{id} -  ,     

77. GiveVehicleHealth( vehicleid, Float: amount ) -      
:
vehicleid - ID ,    
Float: amount -   

78. isEmail( string[] ) -      e-mail
:
string -  

79.isDialogShowedForPlayer( playerid ) -       
:
playerid - ID  

80.hideDialog( playerid ) -       OnDialogResponse      
:
playerid - ID 

    .

81.givePlayerMoneyToPlayer( playerid, targetid, amount ) -    .
:
playerid - ID ,   
targetid - ID ,   
amount -  
    .

82.givePlayerMoneyToPlayerEx( playerid, targetid, amount, Float: range ) -   ,      
:
playerid - ID ,   
targetid - ID ,   
amount -  
Float: range -   .
    .

83.givePlayerHealthToPlayer( playerid, targetid, Float: amount ) -    
:
playerid - ID ,   
targetid - ID ,   
amount -  
    .

84.givePlayerHealthToPlayerEx( playerid, targetid, Float: amount, Float: range ) -   ,      
:
playerid - ID ,   
targetid - ID ,   
amount -  
Float: range -   .
    .

85.givePlayerArmourToPlayer( const playerid, const targetid, Float: amount ) -    
:
playerid - ID ,   
targetid - ID ,   
amount -  
    .

86.givePlayerArmourToPlayerEx( playerid, targetid, Float: amount, Float: range ) -   ,      
:
playerid - ID ,   
targetid - ID ,   
amount -  
Float: range -   .
    .

:
1. onPlayerTarget(playerid,targetid) -      
:
	playerid - ID ,    .
	targetid - ID ,  (layerid)  

  v0.5:
:
1.disableBadWord( word[] ) -   .
:
	word[] - ,   .

2. givePlayerVehicle( playerid, modelid ) -   
:
	playerid - ID ,    
	modelid - ID  
 true   , false -  

3. givePlayerMoneyToAll( amount ) -   
:
amount -  
    .

4. givePlayerHealthToAll( Float: amount ) -   
:
	amount -  
    .

5.givePlayerArmourToAll( amount ) -    
:
	amount -  
    .

6.getTime( ) -    
    ::

7.RangeBan( playerid ) -     IP-. : 127.0.**.**
:
	playerid - ID ,   
    .

8. RandomPlayer() -  ID   .
  INVALID_PLAYER_ID     

9.ArePlayersConnected() -       1   
  1    true   false   

10.GetRandomFromInput( arg1, arg2, ... argN ) -      
   argN.

11.isPlayerNameOnline( const nickname[] ) -         
:
	nickname[] -  
 true    ,  false -  .

12. isValidVehicleModel( const modelid ) -    ID  
:
	modelid -  ID 
 true -     false -   .

13. disableCapsLock( text[] ) -      .
:
	text[] -  
   .(    ";"    !!)

14. getPlayerShopName( playerid ) -   ,    
:
	playerid - ID 
    http://wiki.sa-mp.com/wiki/ShopNames
	
15.fwriteEx( filename[], string[] ) -    .   !
:
	filename[] -  
	string[] -  
    .

 :
1. .
2.     .
3.  DizeL.p   .

      ,      ( ).

//////////////////////////////////////////////////////////
           SAMP  MTA DM  
**************** http://samp-rus.com/ *******************
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

    ,  ,   
   ,    ,   
      .

Copyright SAMP-RUS TEAM  2013

<div id="r-menu"><h1></h1>
			<span id="home"> : . , . , . 19,   ,   ; <br /> :  10:30-13:30.</span>
		</div>