Jump to content

Krusher

Administrator
  • Posts

    116
  • Joined

  • Last visited

  • Days Won

    14

Posts posted by Krusher

  1. timer spraytimerr[ 240000 ]( zone ) {
    	if( clanZoneVariables[ zone ][ clanZoneAttacked ] == 0 )
    		return true;
            new string[128];
    	format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}Clan %s failed to win turf %d owned by your clan.", clanVariables[ clanZoneVariables[ zone ][ clanZoneAttacked ] ][ clanName ], zone );
    	SendToClanMessage(PlayerInfo[playerid][pClan], -1, string);
    	format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}Your clan failed to win turf %d owned by clan %s.", zone, clanVariables[ clanZoneVariables[ zone ][ clanZoneAttacked ] ][ clanName ] );
    	SendToClanMessage(PlayerInfo[playerid][pClan], -1, string);
    	clanZoneVariables[ zone ][ clanZoneAttacked ] = 0; clanZoneVariables[ zone ][ clanZoneProcent ] = 0;
    	stop spraytimer[ zone ];
    	return true; }
  2. CMD:clanduty( playerid, params[ ] ) 
    {
    	if( !PlayerInfo[ playerid ][ pClan ] ) return SendClientMessage( playerid, -1, "{25FDE9}EROARE: {FFFFFF}Nu esti intr-un clan." );
    
    	new string[128];
    	switch( ClanDuty[ playerid ] ) 
    	{
    		case 0: 
    		{
    			ClanDuty[ playerid ] = 1;
    			format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}%s este acum la datoria clanului.", GetName( playerid ) ); // EROARE
    			SendToClanMessage(PlayerInfo[playerid][pClan], -1, string);
    			SCMf( playerid, -1, "{%s}Acum esti la datoria clanului.", clanVariables[ PlayerInfo[ playerid ][ pClan ] ][ clanColor ] );
    		}
    
    		case 1: 
    		{
    			ClanDuty[ playerid ] = 0;
    			format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}%s nu mai este acum la datoria clanului.", GetName( playerid ) ); //EROARE
    			SendToClanMessage(PlayerInfo[playerid][pClan], -1, string);
    			SCMf( playerid, -1, "{25FDE9}CLAN: {FFFFFF}Nu mai esti la datoria clanului." );
    		}
    	}
    
    	return true; 
    }
  3. On 8/11/2018 at 9:42 AM, iMatt said:

    Poti verifica daca face surfing pe vreun vehicul, daca face maresti viteza de verificare..

    Exact, poti verifica daca player-ul face surf si sa pui o conditie la anticheat.

×
×
  • Create New...