Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2013
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.61 KB | None | 0 0
  1. // By duc3life .
  2.  
  3. /*
  4. CreateObject(664, 254.07857, 1745.24304, 16.44613, 0.00000, 0.00000, 30.60001);
  5. CreateObject(7666, 254.44325, 1744.87988, 68.56423, 0.00000, 0.00000, 0.00000);
  6. CreateObject(3472, 254.38727, 1745.06482, 49.43782, 0.00000, 0.00000, 0.00000);
  7. CreateObject(3472, 254.38727, 1745.06482, 36.52319, 0.00000, 0.00000, 0.00000);
  8. CreateObject(3472, 253.99348, 1744.75195, 15.63165, 0.00000, 0.00000, 357.34485);
  9. CreateObject(19055, 250.74117, 1747.28491, 17.19361, 0.00000, 0.00000, 0.00000);
  10. CreateObject(19055, 252.84486, 1747.65247, 17.19361, 0.00000, 0.00000, -57.06001);
  11. CreateObject(19058, 255.41676, 1748.40002, 17.21200, 0.00000, 0.00000, 0.00000);
  12. CreateObject(19056, 256.92920, 1746.46973, 17.14569, 0.00000, 0.00000, 0.00000);
  13. CreateObject(19056, 256.98639, 1744.97644, 17.14569, 0.00000, 0.00000, 64.19999);
  14. CreateObject(19056, 255.97293, 1742.95630, 17.14569, 0.00000, 0.00000, 96.47998);
  15. CreateObject(19058, 258.81262, 1743.63086, 17.21200, 0.00000, 0.00000, 0.00000);
  16.  
  17.  
  18. */
  19.  
  20. #include < a_samp >
  21. #include < zcmd >
  22. #include < a_mysql >
  23.  
  24. #define MySQL_Host "localhost"
  25. #define MySQL_User "root"
  26. #define MySQL_DataBase "xmas"
  27. #define MySQL_Password ""
  28.  
  29. #define ErrorNoAdmin ( "Nu esti RCON Owner !" )
  30.  
  31. #define CName ( "Massari" )
  32. #define CName2 ( "[E.M.O]k1ddu" )
  33.  
  34. #define SName ( "G - Truck" ) // SERVER NAME !
  35.  
  36. #define SVersion ( "1.0" )
  37.  
  38. #define SlapTimer ( 20 )
  39.  
  40. new Handle;
  41. new gString[ 1000 ] ;
  42. //new aHandle;
  43.  
  44. public OnFilterScriptInit()
  45. {
  46. print("\n--------------------------------------");
  47. printf(" Mos craciun nu exista !");
  48. printf(" S C R I P T V E R S I O N V%s", SVersion ) ;
  49. printf(" S C R I P T A T D E %s", CName ) ;
  50. printf(" M U L T U M I R I %s", CName2 ) ;
  51. print("--------------------------------------\n");
  52.  
  53. Handle = mysql_connect( MySQL_Host, MySQL_User, MySQL_DataBase, MySQL_Password ) ;
  54.  
  55. if( mysql_errno( Handle ) != 0 )
  56. print( "Conexiunea nu a avut succes la baza de date !" ) ;
  57.  
  58. else
  59. print( "Conexiunea la baza de date a avut succes !" ) ;
  60.  
  61. mysql_log( LOG_ERROR | LOG_WARNING, LOG_TYPE_HTML ) ;
  62.  
  63. return 1;
  64. }
  65.  
  66. public OnFilterScriptExit()
  67. {
  68. return 1;
  69. }
  70.  
  71. stock xMas_Save( Tabel[ ], String[ ] )
  72. {
  73. new
  74. Year,
  75. Month,
  76. Day,
  77. Hour,
  78. Minute,
  79. Second,
  80. Query[ 1000 ],
  81. Security[ 1000 ]
  82. ;
  83.  
  84. getdate( Year, Month, Day ) ;
  85. gettime( Hour, Minute, Second ) ;
  86.  
  87. mysql_escape_string( String, Security );
  88. format( Query, sizeof( Query ), "INSERT INTO `%s` VALUES(0, '%d/%d/%d - %d:%d:%d: %s')" , Tabel, Day, Month, Year, Hour, Minute, Second, Security ) ;
  89. mysql_tquery( Handle, Query, "" , "" ) ; //ce plm :@W:@:@:@:
  90.  
  91. return ( 1 ) ;
  92. }
  93.  
  94. CMD:test( playerid, params[ ] )
  95. {
  96. new Float: rPos[ 3 ];
  97.  
  98. if( !IsPlayerAdmin( playerid ) )
  99. return SendClientMessage(playerid, 0xFF0000AA, "ERROR: Trebuie sa fi logat RCON") ;
  100.  
  101. gString[ 0 ] = EOS ;
  102.  
  103. GetPlayerPos( playerid, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  104.  
  105. format( gString, sizeof( gString ), "%s - CreateObject( 19058, %f - 1, %f + 3, %f, 0.00000, 0.00000, 0.00000 );", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  106. xMas_Save( "xmas_obj", gString ) ;
  107.  
  108. return ( 1 ) ;
  109. }
  110.  
  111. CMD:createbrad( playerid, params[ ] )
  112. {
  113. new Float: rPos[ 3 ];
  114.  
  115. gString[ 0 ] = EOS;
  116.  
  117. if( !IsPlayerAdmin( playerid ) )
  118. return SendClientMessage(playerid, 0xFF0000AA, "ERROR: Trebuie sa fi logat RCON") ;
  119.  
  120. GetPlayerPos( playerid, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  121.  
  122. format( gString, sizeof( gString ), "%s - CreateObject(664, %f, %f, %f - 1, 0.00000, 0.00000, 30.60001", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  123. xMas_Save( "xmas_obj", gString ) ;
  124. format( gString, sizeof( gString ), "%s - CreateObject(7666, %f, %f, %f + 30, 0.00000, 0.00000, 0.00000", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  125. xMas_Save( "xmas_obj", gString ) ;
  126. format( gString, sizeof( gString ), "%s - CreateObject(3472, %f, %f, %f - 1, 0.00000, 0.00000, 0.00000", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  127. xMas_Save( "xmas_obj", gString ) ;
  128. format( gString, sizeof( gString ), "%s - CreateObject(3472, %f, %f, %f - 1, 0.00000, 0.00000, 0.00000", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  129. xMas_Save( "xmas_obj", gString ) ;
  130. format( gString, sizeof( gString ), "%s - CreateObject(3472, %f, %f, %f - 1, 0.00000, 0.00000, 357.34485", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  131. xMas_Save( "xmas_obj", gString ) ;
  132. format( gString, sizeof( gString ), "%s - CreateObject(19055, %f + 2, %f - 2, %f, 0.00000, 0.00000, 0.00000", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  133. xMas_Save( "xmas_obj", gString ) ;
  134. format( gString, sizeof( gString ), "%s - CreateObject(19055, %f - 4, %f + 3, %f, 0.00000, 0.00000, -57.06001", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  135. xMas_Save( "xmas_obj", gString ) ;
  136. format( gString, sizeof( gString ), "%s - CreateObject(19058, %f + 2, %f + 5, %f, 0.00000, 0.00000, 0.00000", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  137. xMas_Save( "xmas_obj", gString ) ;
  138. format( gString, sizeof( gString ), "%s - CreateObject(19056, %f + 1, %f - 4, %f, 0.00000, 0.00000, 0.00000", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  139. xMas_Save( "xmas_obj", gString ) ;
  140. format( gString, sizeof( gString ), "%s - CreateObject(19056, %f - 2, %f + 3, %f, 0.00000, 0.00000, 64.19999", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  141. xMas_Save( "xmas_obj", gString ) ;
  142. format( gString, sizeof( gString ), "%s - CreateObject(19056, %f + 2, %f - 5, %f, 0.00000, 0.00000, 96.47998", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  143. xMas_Save( "xmas_obj", gString ) ;
  144. format( gString, sizeof( gString ), "%s - CreateObject(19058, %f + 2, %f + 4, %f, 0.00000, 0.00000, 0.00000", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  145. xMas_Save( "xmas_obj", gString ) ;
  146. format( gString, sizeof( gString ), "%s - CreateObject(19056, %f - 2, %f + 2, %f, 0.00000, 0.00000, 64.19999", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  147. xMas_Save( "xmas_obj", gString ) ;
  148. format( gString, sizeof( gString ), "%s - CreateObject(19056, %f + 2, %f - 4, %f, 0.00000, 0.00000, 96.47998", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  149. xMas_Save( "xmas_obj", gString ) ;
  150. format( gString, sizeof( gString ), "%s - CreateObject(19058, %f - 1, %f + 3, %f, 0.00000, 0.00000, 0.00000", GetName( playerid ), rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
  151. xMas_Save( "xmas_obj", gString ) ;
  152.  
  153. CreateObject(664, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] - 1, 0.00000, 0.00000, 30.60001);
  154. CreateObject(7666, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] + 30, 0.00000, 0.00000, 0.00000);
  155. CreateObject(3472, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] - 1, 0.00000, 0.00000, 0.00000);
  156. CreateObject(3472, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] - 1, 0.00000, 0.00000, 0.00000);
  157. CreateObject(3472, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] - 1, 0.00000, 0.00000, 357.34485);
  158.  
  159. CreateObject(19055, rPos[ 0 ] + 2, rPos[ 1 ] - 2, rPos[ 2 ], 0.00000, 0.00000, 0.00000);
  160. CreateObject(19055, rPos[ 0 ] - 4, rPos[ 1 ] + 3, rPos[ 2 ], 0.00000, 0.00000, -57.06001);
  161. CreateObject(19058, rPos[ 0 ] + 2, rPos[ 1 ] + 5, rPos[ 2 ], 0.00000, 0.00000, 0.00000);
  162. CreateObject(19056, rPos[ 0 ] + 1, rPos[ 1 ] - 4, rPos[ 2 ], 0.00000, 0.00000, 0.00000);
  163. CreateObject(19056, rPos[ 0 ] - 2, rPos[ 1 ] + 3, rPos[ 2 ], 0.00000, 0.00000, 64.19999);
  164. CreateObject(19056, rPos[ 0 ] + 2, rPos[ 1 ] - 5, rPos[ 2 ], 0.00000, 0.00000, 96.47998);
  165. CreateObject(19058, rPos[ 0 ] + 2, rPos[ 1 ] + 4, rPos[ 2 ], 0.00000, 0.00000, 0.00000);
  166. CreateObject(19056, rPos[ 0 ] - 2, rPos[ 1 ] + 2, rPos[ 2 ], 0.00000, 0.00000, 64.19999);
  167. CreateObject(19056, rPos[ 0 ] + 2, rPos[ 1 ] - 4, rPos[ 2 ], 0.00000, 0.00000, 96.47998);
  168. CreateObject(19058, rPos[ 0 ] - 1, rPos[ 1 ] + 3, rPos[ 2 ], 0.00000, 0.00000, 0.00000);
  169.  
  170. SetPlayerPos( playerid, rPos[ 0 ] + 4, rPos[ 1 ] + 4, rPos[ 2 ] + 4 ) ;
  171.  
  172. printf( "* %s a creat un brad !", GetName( playerid ) ) ;
  173. return ( 1 ) ;
  174. }
  175.  
  176. CMD:sayallmc( playerid, params[ ] )
  177. {
  178. gString[ 0 ] = EOS;
  179.  
  180. if( !IsPlayerAdmin( playerid ) )
  181. return SendClientMessage(playerid, 0xFF0000AA, "ERROR: Trebuie sa fi logat RCON") ;
  182.  
  183. format( gString, 128, "%s iti ureaza sarbatori fericite !", SName ) ;
  184. SendClientMessageToAll( -1, gString ) ;
  185. GameTextForAll( "~G~~H~Craciun Fericit !~N~~N~~N~~N~~Y~~H~Craciun Fericit !", 6000, 3 ) ;
  186. return ( 1 ) ;
  187. }
  188.  
  189. stock GetName( playerid )
  190. {
  191. new pName[ 24 ] ;
  192. GetPlayerName( playerid, pName, sizeof( pName ) ) ;
  193. return ( pName ) ;
  194. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement