Advertisement
Guest User

Untitled

a guest
Aug 14th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.97 KB | None | 0 0
  1.     if( gettime( ) < GetPVarInt( playerid, "sprayDeelay" ) )
  2.         return SendClientMessage( playerid, -1, "{25FDE9}EROARE: {FFFFFF}Asteapta cateva secunde." );
  3.     SetPVarInt( playerid, "sprayDeelay", gettime( ) + 5 );
  4.     ApplyAnimation( playerid, "GRAFFITi", "spraycan_fire", 4.0, 0, 0, 0, 0, 0 );
  5.     clanZoneVariables[ zone ][ clanZoneProcent ] -= 25;
  6.     if( clanZoneVariables[ zone ][ clanZoneProcent ] > 0 ) SCMf( playerid, -1, "{25FDE9}CLAN: {FFFFFF}Continua sa spreezi, mai ai de sprayat %d la suta.", clanZoneVariables[ zone ][ clanZoneProcent ] );
  7.     else {
  8.         new bani = 25000 + random( 50000 );
  9.         clanVariables[ clan ][ clanSafe ] += bani;
  10.         SetPlayerAmmo( playerid, 9, 0 );
  11.         format( string, 50, "clanul %s", clanVariables[ zoneclan ][ clanName ] );
  12.         format(string,sizeof(string), "{25FDE9}CLAN: {FFFFFF}%s a castigat turful %d, detinut de %s si a castigat %s$.", GetName( playerid ), zone, ( !clanZoneVariables[ zone ][ clanZoneClan ] ) ? ( "nimeni" ) : ( string ), FormatNumber( bani ) );
  13.         SendToClan(PlayerInfo[playerid][pClan], -1, string);
  14.         SCMf( playerid, -1, "{%s}Ai sprayat peretele cu succes.", clanVariables[ clan ][ clanColor ] );
  15.         mysql_format( SQL, gString, sizeof gString, "UPDATE `clanzones` SET `zoneClan` = '%d' WHERE `zoneID` = '%d'", clan, zone );
  16.         mysql_tquery( SQL, gString, "", "" );
  17.         mysql_format( SQL, gString, sizeof gString, "UPDATE `clans` SET `clanSafe` = '%d' WHERE `clanID` = '%d'", clanVariables[ clan ][ clanSafe ], clanVariables[ clan ][ clanID ] );
  18.         mysql_tquery( SQL, gString, "", "" );
  19.         clanZoneVariables[ zone ][ clanZoneAttacked ] = 0;
  20.         clanZoneVariables[ zone ][ clanZoneProcent ] = 0;
  21.         clanZoneVariables[ zone ][ clanZoneClan ] = clan;
  22.         stop spraytimer[ zone ];
  23.         DestroyDynamicObject( clanZoneVariables[ zone ][ clanZoneObject ] );
  24.         format( string, 50, "{%s}%s", clanVariables[ clanZoneVariables[ zone ][ clanZoneClan ] ][ clanColor ], clanVariables[ clanZoneVariables[ zone ][ clanZoneClan ] ][ clanName ] );
  25.         clanZoneVariables[ zone ][ clanZoneObject ] = CreateDynamicObject( 19353, clanZoneVariables[ zone ][ clanZoneObjX ], clanZoneVariables[ zone ][ clanZoneObjY ], clanZoneVariables[ zone ][ clanZoneObjZ ], clanZoneVariables[ zone ][ clanZoneObjRotX ], clanZoneVariables[ zone ][ clanZoneObjRotY ], clanZoneVariables[ zone ][ clanZoneObjRotZ ], -1, -1, -1, STREAMER_OBJECT_SD, STREAMER_OBJECT_DD );
  26.         SetDynamicObjectMaterialText( clanZoneVariables[ zone ][ clanZoneObject ], 0, string, OBJECT_MATERIAL_SIZE_256x128, "Arial", 28, 0, 0xFFFF9200, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER );
  27.         if( !clanZoneVariables[ zone ][ clanZoneClan ] )
  28.             return true;
  29.         format(string,sizeof(string), " {25FDE9}CLAN: {FFFFFF}%s din clanul %s a castigat turful %d, detinut de clanul tau.", GetName( playerid ), clanVariables[ clan ][ clanName ], zone );
  30.         SendToClan(PlayerInfo[playerid][pClan], -1, string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement