Advertisement
Guest User

Untitled

a guest
Jan 27th, 2011
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.15 KB | None | 0 0
  1. #include a_samp
  2. #define OFSI OnFilterScriptInit
  3. #define Connect public OnPlayerConnect( playerid )
  4. #define Message(%2) SendClientMessage( playerid, -1, %2 )
  5.  
  6.  
  7. enum ZH_g_zData
  8. {
  9.     _g_Var1,
  10.     _g_Var2
  11. }
  12.  
  13. new g_data[ 300 char ][ ZH_g_zData char],
  14.     _z_pCon[ 500 char],
  15.     _z_pConBool[ 500 char ],
  16.     zInt = 50,
  17.     bool:myBool = !!zInt;
  18.     #pragma unused myBool
  19. public OFSI( )
  20. {
  21.     for ( new i, slots = GetMaxPlayers( ); i < slots; i++ )
  22.     {
  23.         g_data[ i ]{ _g_Var1 } = 0;
  24.     }
  25.  
  26.  
  27. }
  28.    
  29. Connect
  30. {
  31.     Message("Welcome"), GivePlayerWeapon( playerid, 24 , 9 ), Message("You received a Desert Eagle with 9 bullets"),
  32.     GivePlayerMoney( playerid, 5 ), Message("And now you received 5$"), SetPlayerScore( playerid, 5 ), Message("And now your score is set to 5");
  33.  
  34.     g_data[ playerid ]{ _g_Var1 } = 0;
  35.     _z_pCon{ playerid } = 0;
  36.     _z_pConBool{ playerid } = false;
  37.    
  38.     new _g_Rand = random( 2 );
  39.     if ( _g_Rand == 0 ) _z_pConBool{ playerid } = false;
  40.     if ( _g_Rand == 1 ) _z_pConBool{ playerid } = true;
  41.    
  42.     return ( _z_pConBool{ playerid } ? false : true ) && ( _z_pConBool{ playerid } ? Message("Sadly it radomly returned false") : Message("It returned true, yay!") ) ;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement