Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( gettime( ) < GetPVarInt( playerid, "sprayDeelay" ) )
- return SendClientMessage( playerid, -1, "{25FDE9}EROARE: {FFFFFF}Asteapta cateva secunde." );
- SetPVarInt( playerid, "sprayDeelay", gettime( ) + 5 );
- ApplyAnimation( playerid, "GRAFFITi", "spraycan_fire", 4.0, 0, 0, 0, 0, 0 );
- clanZoneVariables[ zone ][ clanZoneProcent ] -= 25;
- if( clanZoneVariables[ zone ][ clanZoneProcent ] > 0 ) SCMf( playerid, -1, "{25FDE9}CLAN: {FFFFFF}Continua sa spreezi, mai ai de sprayat %d la suta.", clanZoneVariables[ zone ][ clanZoneProcent ] );
- else {
- new bani = 25000 + random( 50000 );
- clanVariables[ clan ][ clanSafe ] += bani;
- SetPlayerAmmo( playerid, 9, 0 );
- format( string, 50, "clanul %s", clanVariables[ zoneclan ][ clanName ] );
- 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 ) );
- SendToClan(PlayerInfo[playerid][pClan], -1, string);
- SCMf( playerid, -1, "{%s}Ai sprayat peretele cu succes.", clanVariables[ clan ][ clanColor ] );
- mysql_format( SQL, gString, sizeof gString, "UPDATE `clanzones` SET `zoneClan` = '%d' WHERE `zoneID` = '%d'", clan, zone );
- mysql_tquery( SQL, gString, "", "" );
- mysql_format( SQL, gString, sizeof gString, "UPDATE `clans` SET `clanSafe` = '%d' WHERE `clanID` = '%d'", clanVariables[ clan ][ clanSafe ], clanVariables[ clan ][ clanID ] );
- mysql_tquery( SQL, gString, "", "" );
- clanZoneVariables[ zone ][ clanZoneAttacked ] = 0;
- clanZoneVariables[ zone ][ clanZoneProcent ] = 0;
- clanZoneVariables[ zone ][ clanZoneClan ] = clan;
- stop spraytimer[ zone ];
- DestroyDynamicObject( clanZoneVariables[ zone ][ clanZoneObject ] );
- format( string, 50, "{%s}%s", clanVariables[ clanZoneVariables[ zone ][ clanZoneClan ] ][ clanColor ], clanVariables[ clanZoneVariables[ zone ][ clanZoneClan ] ][ clanName ] );
- 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 );
- SetDynamicObjectMaterialText( clanZoneVariables[ zone ][ clanZoneObject ], 0, string, OBJECT_MATERIAL_SIZE_256x128, "Arial", 28, 0, 0xFFFF9200, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER );
- if( !clanZoneVariables[ zone ][ clanZoneClan ] )
- return true;
- 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 );
- SendToClan(PlayerInfo[playerid][pClan], -1, string);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement