Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // By duc3life .
- /*
- CreateObject(664, 254.07857, 1745.24304, 16.44613, 0.00000, 0.00000, 30.60001);
- CreateObject(7666, 254.44325, 1744.87988, 68.56423, 0.00000, 0.00000, 0.00000);
- CreateObject(3472, 254.38727, 1745.06482, 49.43782, 0.00000, 0.00000, 0.00000);
- CreateObject(3472, 254.38727, 1745.06482, 36.52319, 0.00000, 0.00000, 0.00000);
- CreateObject(3472, 253.99348, 1744.75195, 15.63165, 0.00000, 0.00000, 357.34485);
- CreateObject(19055, 250.74117, 1747.28491, 17.19361, 0.00000, 0.00000, 0.00000);
- CreateObject(19055, 252.84486, 1747.65247, 17.19361, 0.00000, 0.00000, -57.06001);
- CreateObject(19058, 255.41676, 1748.40002, 17.21200, 0.00000, 0.00000, 0.00000);
- CreateObject(19056, 256.92920, 1746.46973, 17.14569, 0.00000, 0.00000, 0.00000);
- CreateObject(19056, 256.98639, 1744.97644, 17.14569, 0.00000, 0.00000, 64.19999);
- CreateObject(19056, 255.97293, 1742.95630, 17.14569, 0.00000, 0.00000, 96.47998);
- CreateObject(19058, 258.81262, 1743.63086, 17.21200, 0.00000, 0.00000, 0.00000);
- */
- #include < a_samp >
- #include < zcmd >
- #include < a_mysql >
- #define MySQL_Host "localhost"
- #define MySQL_User "root"
- #define MySQL_DataBase "xmas"
- #define MySQL_Password ""
- #define ErrorNoAdmin ( "Nu esti RCON Owner !" )
- #define CName ( "Massari" )
- #define CName2 ( "[E.M.O]k1ddu" )
- #define SName ( "G - Truck" ) // SERVER NAME !
- #define SVersion ( "1.0" )
- #define SlapTimer ( 20 )
- new Handle;
- new gString[ 1000 ] ;
- //new aHandle;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- printf(" Mos craciun nu exista !");
- printf(" S C R I P T V E R S I O N V%s", SVersion ) ;
- printf(" S C R I P T A T D E %s", CName ) ;
- printf(" M U L T U M I R I %s", CName2 ) ;
- print("--------------------------------------\n");
- Handle = mysql_connect( MySQL_Host, MySQL_User, MySQL_DataBase, MySQL_Password ) ;
- if( mysql_errno( Handle ) != 0 )
- print( "Conexiunea nu a avut succes la baza de date !" ) ;
- else
- print( "Conexiunea la baza de date a avut succes !" ) ;
- mysql_log( LOG_ERROR | LOG_WARNING, LOG_TYPE_HTML ) ;
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- stock xMas_Save( Tabel[ ], String[ ] )
- {
- new
- Year,
- Month,
- Day,
- Hour,
- Minute,
- Second,
- Query[ 1000 ],
- Security[ 1000 ]
- ;
- getdate( Year, Month, Day ) ;
- gettime( Hour, Minute, Second ) ;
- mysql_escape_string( String, Security );
- format( Query, sizeof( Query ), "INSERT INTO `%s` VALUES(0, '%d/%d/%d - %d:%d:%d: %s')" , Tabel, Day, Month, Year, Hour, Minute, Second, Security ) ;
- mysql_tquery( Handle, Query, "" , "" ) ; //ce plm :@W:@:@:@:
- return ( 1 ) ;
- }
- CMD:test( playerid, params[ ] )
- {
- new Float: rPos[ 3 ];
- if( !IsPlayerAdmin( playerid ) )
- return SendClientMessage(playerid, 0xFF0000AA, "ERROR: Trebuie sa fi logat RCON") ;
- gString[ 0 ] = EOS ;
- GetPlayerPos( playerid, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- return ( 1 ) ;
- }
- CMD:createbrad( playerid, params[ ] )
- {
- new Float: rPos[ 3 ];
- gString[ 0 ] = EOS;
- if( !IsPlayerAdmin( playerid ) )
- return SendClientMessage(playerid, 0xFF0000AA, "ERROR: Trebuie sa fi logat RCON") ;
- GetPlayerPos( playerid, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- 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 ] ) ;
- xMas_Save( "xmas_obj", gString ) ;
- CreateObject(664, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] - 1, 0.00000, 0.00000, 30.60001);
- CreateObject(7666, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] + 30, 0.00000, 0.00000, 0.00000);
- CreateObject(3472, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] - 1, 0.00000, 0.00000, 0.00000);
- CreateObject(3472, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] - 1, 0.00000, 0.00000, 0.00000);
- CreateObject(3472, rPos[ 0 ], rPos[ 1 ], rPos[ 2 ] - 1, 0.00000, 0.00000, 357.34485);
- CreateObject(19055, rPos[ 0 ] + 2, rPos[ 1 ] - 2, rPos[ 2 ], 0.00000, 0.00000, 0.00000);
- CreateObject(19055, rPos[ 0 ] - 4, rPos[ 1 ] + 3, rPos[ 2 ], 0.00000, 0.00000, -57.06001);
- CreateObject(19058, rPos[ 0 ] + 2, rPos[ 1 ] + 5, rPos[ 2 ], 0.00000, 0.00000, 0.00000);
- CreateObject(19056, rPos[ 0 ] + 1, rPos[ 1 ] - 4, rPos[ 2 ], 0.00000, 0.00000, 0.00000);
- CreateObject(19056, rPos[ 0 ] - 2, rPos[ 1 ] + 3, rPos[ 2 ], 0.00000, 0.00000, 64.19999);
- CreateObject(19056, rPos[ 0 ] + 2, rPos[ 1 ] - 5, rPos[ 2 ], 0.00000, 0.00000, 96.47998);
- CreateObject(19058, rPos[ 0 ] + 2, rPos[ 1 ] + 4, rPos[ 2 ], 0.00000, 0.00000, 0.00000);
- CreateObject(19056, rPos[ 0 ] - 2, rPos[ 1 ] + 2, rPos[ 2 ], 0.00000, 0.00000, 64.19999);
- CreateObject(19056, rPos[ 0 ] + 2, rPos[ 1 ] - 4, rPos[ 2 ], 0.00000, 0.00000, 96.47998);
- CreateObject(19058, rPos[ 0 ] - 1, rPos[ 1 ] + 3, rPos[ 2 ], 0.00000, 0.00000, 0.00000);
- SetPlayerPos( playerid, rPos[ 0 ] + 4, rPos[ 1 ] + 4, rPos[ 2 ] + 4 ) ;
- printf( "* %s a creat un brad !", GetName( playerid ) ) ;
- return ( 1 ) ;
- }
- CMD:sayallmc( playerid, params[ ] )
- {
- gString[ 0 ] = EOS;
- if( !IsPlayerAdmin( playerid ) )
- return SendClientMessage(playerid, 0xFF0000AA, "ERROR: Trebuie sa fi logat RCON") ;
- format( gString, 128, "%s iti ureaza sarbatori fericite !", SName ) ;
- SendClientMessageToAll( -1, gString ) ;
- GameTextForAll( "~G~~H~Craciun Fericit !~N~~N~~N~~N~~Y~~H~Craciun Fericit !", 6000, 3 ) ;
- return ( 1 ) ;
- }
- stock GetName( playerid )
- {
- new pName[ 24 ] ;
- GetPlayerName( playerid, pName, sizeof( pName ) ) ;
- return ( pName ) ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement