Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- #define OFSI OnFilterScriptInit
- #define Connect public OnPlayerConnect( playerid )
- #define Message(%2) SendClientMessage( playerid, -1, %2 )
- enum ZH_g_zData
- {
- _g_Var1,
- _g_Var2
- }
- new g_data[ 300 char ][ ZH_g_zData char],
- _z_pCon[ 500 char],
- _z_pConBool[ 500 char ],
- zInt = 50,
- bool:myBool = !!zInt;
- #pragma unused myBool
- public OFSI( )
- {
- for ( new i, slots = GetMaxPlayers( ); i < slots; i++ )
- {
- g_data[ i ]{ _g_Var1 } = 0;
- }
- }
- Connect
- {
- Message("Welcome"), GivePlayerWeapon( playerid, 24 , 9 ), Message("You received a Desert Eagle with 9 bullets"),
- GivePlayerMoney( playerid, 5 ), Message("And now you received 5$"), SetPlayerScore( playerid, 5 ), Message("And now your score is set to 5");
- g_data[ playerid ]{ _g_Var1 } = 0;
- _z_pCon{ playerid } = 0;
- _z_pConBool{ playerid } = false;
- new _g_Rand = random( 2 );
- if ( _g_Rand == 0 ) _z_pConBool{ playerid } = false;
- if ( _g_Rand == 1 ) _z_pConBool{ playerid } = true;
- return ( _z_pConBool{ playerid } ? false : true ) && ( _z_pConBool{ playerid } ? Message("Sadly it radomly returned false") : Message("It returned true, yay!") ) ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement