It is currently 17 Jan 2019 21:35






Reply to topic  [ 5 posts ] 
 Problema COMPILARE [Rezolvat] 
Author Message
Online
Membru, skill 0
Membru, skill 0

Joined: 26 Nov 2018 19:52
Posts: 69
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Salut, imi poate rezolva si mie cineva sa nu mai dea eroare la compilare?

| Afiseaza codul
#include < amxmodx >
#include < cstrike >
#include < fun >
#include < ColorChat >
#include <amxmisc>

#pragma semicolon 1


#define PLUGIN "DR"
#define VERSION "1.0"


#define MagicWordTask 112233
#define MagicWordSecondTask 332211
#define VITEZA 500

enum
{
PRIZE_SPEED,
PRIZE_NOCLIP,
PRIZE_GODMODE,
PRIZE_HP,
PRIZE_RENDERING,
PRIZE_ARMOR,
PRIZE_AK47,
PRIZE_NADES,
PRIZE_AWP
}

new const g_szSmallLetters[ ] =
{
'a','b','c','d',
'e','f','g','h',
'j','k',
'm','n','p',
'q','r','s','t',
'u','v','w','x',
'y','z'
};


new const g_szLargeLetters[ ] =
{
'A','B','C','D',
'E','F','G','H',
'I','J','K','L',
'M','N','P',
'Q','R','S','T',
'U','V','W','X',
'Y','Z'
};


new const g_szNumbers[ ] =
{
'1',
'2','3',
'4','5',
'6','7',
'8','9'
};

new const g_szSymbols[ ] =
{
'!','?'
};
new bar;
new gCvarMagicWordIterval;
new gCvarMagicWordAnswerTime;
new gCvarMagicWordHP;

new g_iAnswerTime = 0;
new g_szMagicWord[ 32 ];

new bool:g_bPlayersCanAnswer = false;
new bool:viteza[31];
new bool:invizibilitate[32];

new SyncHudMessage;

public plugin_init( )
{
register_plugin( PLUGIN, VERSION, "Askhanar" );

gCvarMagicWordIterval = register_cvar( "fmu_mw_interval", "180" );
gCvarMagicWordAnswerTime = register_cvar( "fmu_mw_answertime", "15" );
gCvarMagicWordHP = register_cvar( "fmu_mw_hp", "50" );

register_clcmd( "amx_magicword", "ClCmdMagicWord" );

register_clcmd( "say", "CheckForMagicWord" );
register_clcmd( "say_team", "CheckForMagicWord" );
register_event("CurWeapon", "event_CurWeapon", "be", "1=1");
register_event("HLTV", "event_newround", "a", "1=0", "2=0");

bar = get_user_msgid("BarTime");

SyncHudMessage = CreateHudSyncObj( );
set_task( 15.0, "ChooseRandomWord", MagicWordTask );

}

public event_newround()
{
arrayset(viteza, false, charsmax(viteza));

new i, players[32], num, id;
get_players(players, num);
for(i = 0; i < num; i++)
{
id = players[i];
if(!is_user_alive(id))
continue;

if(invizibilitate[id])
{
invizibilitate[id] = false;
set_user_rendering(id);
}


}


public client_death(killer, victim, wpnindex, hitplace, tk)
{
if(!is_user_alive(killer))
return;

if(killer == victim)
return;

if(viteza[killer]) viteza[killer] = false;
if(invizibilitate[killer])
{
invizibilitate[killer] = false;
set_user_rendering(killer);
}
}


public client_putinserver(id)
{
viteza[id] = false;
invizibilitate[id] = false;
}

public ClCmdMagicWord( id )
{
if( !UserHasAcces( id ) )
{
client_cmd( id, "echo Nu ai acces la aceasta comanda !" );
return PLUGIN_HANDLED;
}

read_argv( 1, g_szMagicWord, 14 );
if( equal( g_szMagicWord, "" ) )
{

remove_task( MagicWordTask );
remove_task( MagicWordSecondTask );
g_bPlayersCanAnswer = false;

ChooseRandomWord( );
}
else
{
remove_task( MagicWordTask );
remove_task( MagicWordSecondTask );
g_bPlayersCanAnswer = false;

DisplayMagicWord( );
}


return 1;
}

public CheckForMagicWord( id )
{

static szSaid[ 192 ];
read_args( szSaid, sizeof ( szSaid ) -1 );

remove_quotes( szSaid );
if( equali( szSaid, "" ) || !g_bPlayersCanAnswer
|| cs_get_user_team( id ) == CS_TEAM_T )
return PLUGIN_CONTINUE;


if( equal( szSaid, g_szMagicWord ) )
{
g_bPlayersCanAnswer = false;
client_cmd( 0, "spk woop" );
GiveUserPrize( id );
}

return PLUGIN_CONTINUE;
}


public ChooseRandomWord( )
{
if( !get_playersnum( ) )
{
set_task( float( get_pcvar_num( gCvarMagicWordIterval ) ), "ChooseRandomWord", MagicWordTask );
return;
}

new iLen = random_num( 7, 8 );
formatex( g_szMagicWord, sizeof ( g_szMagicWord ) -1, "" );

for( new i = 0; i < iLen; i++ )
g_szMagicWord[ i ] = GetRandomCharacter( );

StartMagicWord( );
client_cmd( 0, "spk doop" );

set_task( float( get_pcvar_num( gCvarMagicWordIterval ) ), "ChooseRandomWord", MagicWordTask );
}

public DisplayMagicWord( )
{
if( !get_playersnum( ) )
{
set_task( float( get_pcvar_num( gCvarMagicWordIterval ) ), "ChooseRandomWord", MagicWordTask );
return;
}

StartMagicWord( );
client_cmd( 0, "spk doop" );

set_task( float( get_pcvar_num( gCvarMagicWordIterval ) ), "ChooseRandomWord", MagicWordTask );
}

GetRandomCharacter( )
{
new Float:fRandom = random_float( 1.0, 100.0 );

if( fRandom <= 25.0 )
{
return g_szSmallLetters[ random( sizeof ( g_szSmallLetters ) ) ];
}

else if( fRandom > 25.0 && fRandom <= 50.0 )
{
return g_szLargeLetters[ random( sizeof ( g_szLargeLetters ) ) ];
}

else if( fRandom > 50.0 && fRandom < 75.0 )
{
return g_szNumbers[ random( sizeof ( g_szNumbers ) ) ];
}
else if( fRandom > 75.0 )
{
return g_szSymbols[ random( sizeof ( g_szSymbols ) ) ];
}

return EOS;
}

public StartMagicWord( )
{
g_bPlayersCanAnswer = true;

g_iAnswerTime = get_pcvar_num( gCvarMagicWordAnswerTime );
CountAnswerTime( );

}

public CountAnswerTime( )
{

if( g_bPlayersCanAnswer )
{

if( g_iAnswerTime <= 0 )
{
g_bPlayersCanAnswer = false;
ColorChat( 1, RED, "^x04[DR]^x01 Nu a scris nimeni cuvantul, poate data viitoare.." );
return PLUGIN_HANDLED;
}

set_hudmessage( 0, 255, 255, -1.0, 0.10, 0, 0.0, 1.0, 0.0, 0.1, 2 );
ShowSyncHudMsg( 0, SyncHudMessage, "Cine scrie primul: %s castiga un premiu! (doar CT)^n %i secund%s ramas%s !!",
g_szMagicWord, g_iAnswerTime, g_iAnswerTime == 1 ? "a" : "e", g_iAnswerTime == 1 ? "a" : "e" );

g_iAnswerTime--;

set_task( 1.0, "CountAnswerTime", MagicWordSecondTask );
}

return PLUGIN_CONTINUE;
}

public GiveUserPrize( id )
{

new szName[ 55 ];
get_user_name( id, szName, sizeof ( szName ) -1 );

new iRandomPrize = random_num( PRIZE_SPEED, PRIZE_AWP);

switch( iRandomPrize )
{

case PRIZE_SPEED:
{
viteza[id] = true;
set_user_maxspeed(id, float(VITEZA));
ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 400 Speed^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}
case PRIZE_NOCLIP:
{
set_user_noclip(id,1);
set_task(8.0,"removeClip",id);
ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 NOCLIP^x01 8 sec!", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );

message_begin(MSG_ONE_UNRELIABLE, bar, .player=id);
write_short(8);
message_end();

}

case PRIZE_GODMODE:
{
set_user_godmode(id,1);
set_task(10.0,"removeGodMode",id);
ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si este^x03 Invincibil^x01 10 Secunde!", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );

message_begin(MSG_ONE_UNRELIABLE, bar, .player=id);
write_short(10);
message_end();
}

case PRIZE_HP:
{
set_user_health( id, get_user_health( id ) + get_pcvar_num( gCvarMagicWordHP ) );
ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 %i HP^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}
case PRIZE_RENDERING:
{
invizibilitate[id] = true;
set_user_rendering ( id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 32 );
ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 Invizibilitate^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}
case PRIZE_ARMOR:
{
set_user_armor(id, 100);
ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 100 Armura^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}
case PRIZE_AK47:
{
cs_set_weapon_ammo( give_item( id, "weapon_ak47" ), 50 );
cs_set_user_bpammo(id, CSW_AK47, 99);
ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 AK47^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}
case PRIZE_NADES:
{
give_item( id, "weapon_hegrenade" );
give_item( id, "weapon_smokegrenade" );

cs_set_user_bpammo( id, CSW_HEGRENADE, 3 );
cs_set_user_bpammo( id, CSW_SMOKEGRENADE, 1 );

ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 grenade ^x01 !", szName, g_szMagicWord );
}
case PRIZE_AWP:
{
cs_set_weapon_ammo( give_item( id, "weapon_awp" ), 20 );
cs_set_user_bpammo(id, CSW_AWP, 99);
ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 AWP ^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}


}

formatex( g_szMagicWord, sizeof ( g_szMagicWord ) -1, "" );
return 0;
}

public removeGodMode(id) {
set_user_godmode(id,0);
ColorChat( id, RED, "^x04[DR]^x01 Nu mai esti ^x03Invincibil!");
}

public removeClip(id) {
set_user_noclip(id,0);
ColorChat( id, RED, "^x04[DR]^x01 NoClip ^x03OFF!");
}

public event_CurWeapon(id)
{
if(is_user_alive(id))
{
if(get_user_maxspeed(id) != 1.0 && viteza[id] == true)
{
set_user_maxspeed(id, float(VITEZA));
}
}

return PLUGIN_CONTINUE;
}

public ShakeScreen(id, const Float:iSeconds)
{
static g_msg_SS = 0;
if(!g_msg_SS)
g_msg_SS = get_user_msgid("ScreenShake");

message_begin(MSG_ONE, g_msg_SS, _, id);
write_short(floatround(4096.0 * iSeconds, floatround_round));
write_short(floatround(4096.0 * iSeconds, floatround_round));
write_short(1<<13);
message_end();
}

stock bool:UserHasAcces( id )
{

if( get_user_flags( id ) & ADMIN_RCON )
return true;

return false;

}



Am urmatoarele erori:
Code:
trivia.sma(94) : warning 217: loose indentation
trivia.sma(99) : warning 217: loose indentation
trivia.sma(108) : warning 217: loose indentation
trivia.sma(109) : warning 217: loose indentation
trivia.sma(126) : warning 217: loose indentation
trivia.sma(126) : error 029: invalid expression, assumed zero
trivia.sma(126) : error 017: undefined symbol "client_death"
trivia.sma(126) : error 017: undefined symbol "victim"
trivia.sma(126) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Done.


Last edited by cs_all on 12 Jan 2019 15:16, edited 2 times in total.

Rezolvat



12 Jan 2019 01:37
Profile multumesc WWW
Online
Moderator ajutator
Moderator ajutator
User avatar

Joined: 10 May 2013 13:25
Posts: 2885
Location: Gura Humorului
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Fond eXtream: 0
Scrie la început sub celelalte librarii

#include <csx>

_________________
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș

Pluginurile mele publice | Afiseaza codul
Control HE Damage(s)
[Zombie mod] Liderul oamenilor
NO RUSH (MANUAL)
Salvatorul Craciunului
Harry Potter's Magic Wand [0.0.3]
New HE Grenade Effects
Upgrades Menu -> Health/Armor/Damage

Serverele care au achizitonat pluginurile mele: #1 #2

CONTACT: sef_yontu@yahoo.com | skype: cyp_yontu


12 Jan 2019 01:59
Profile multumesc YIM WWW
Online
Membru, skill 0
Membru, skill 0

Joined: 26 Nov 2018 19:52
Posts: 69
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
YONTU, am adaugat si s-a schimbat putin eroarea:

Code:
trivia.sma(95) : warning 217: loose indentation
trivia.sma(100) : warning 217: loose indentation
trivia.sma(109) : warning 217: loose indentation
trivia.sma(110) : warning 217: loose indentation
trivia.sma(127) : warning 217: loose indentation
trivia.sma(127) : error 029: invalid expression, assumed zero
trivia.sma(127) : error 004: function "client_death" is not implemented
trivia.sma(127) : error 017: undefined symbol "victim"
trivia.sma(127) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
Done.


12 Jan 2019 02:13
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1678
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Fond eXtream: 0
| Afiseaza codul
Code:
#include < amxmodx >
#include < cstrike >
#include < fun >
#include < ColorChat >

#pragma tabsize 0

#define PLUGIN "DR"
#define VERSION "1.0"

#define      MagicWordTask      112233
#define      MagicWordSecondTask   332211
#define VITEZA      500

enum
{
PRIZE_SPEED,
PRIZE_NOCLIP,
PRIZE_GODMODE,
PRIZE_HP,
PRIZE_RENDERING,
PRIZE_ARMOR,
PRIZE_AK47,
PRIZE_NADES,
PRIZE_AWP
}

new const g_szSmallLetters[    ] =
{
'a','b','c','d',
'e','f','g','h',
'j','k',
'm','n','p',
'q','r','s','t',
'u','v','w','x',
'y','z'
};


new const g_szLargeLetters[    ] =
{
'A','B','C','D',
'E','F','G','H',
'I','J','K','L',
'M','N','P',
'Q','R','S','T',
'U','V','W','X',
'Y','Z'
};


new const g_szNumbers[    ]  = 
{
'1',
'2','3',
'4','5',
'6','7',
'8','9'
};

new const g_szSymbols[    ]  = 
{
'!','?'
};
new bar;
new gCvarMagicWordIterval;
new gCvarMagicWordAnswerTime;
new gCvarMagicWordHP;

new g_iAnswerTime = 0;
new g_szMagicWord[ 32 ];

new bool:g_bPlayersCanAnswer  =  false;
new bool:viteza[31];
new bool:invizibilitate[32];

new SyncHudMessage;

public plugin_init( )
{
register_plugin( PLUGIN, VERSION, "Askhanar" );

gCvarMagicWordIterval =  register_cvar( "fmu_mw_interval",  "180"  );
gCvarMagicWordAnswerTime = register_cvar( "fmu_mw_answertime",  "15"  );
gCvarMagicWordHP = register_cvar( "fmu_mw_hp",  "50"  );

register_clcmd( "amx_magicword", "ClCmdMagicWord" );

register_clcmd( "say", "CheckForMagicWord" );
register_clcmd( "say_team", "CheckForMagicWord" );
register_event("CurWeapon", "event_CurWeapon", "be", "1=1");
register_event("HLTV", "event_newround", "a", "1=0", "2=0");

bar = get_user_msgid("BarTime");   

SyncHudMessage  =  CreateHudSyncObj(    );
set_task(  15.0,  "ChooseRandomWord",  MagicWordTask  );

}

public event_newround()
{
arrayset(viteza, false, charsmax(viteza));

new i, players[32], num, id;
get_players(players, num);
for(i = 0; i < num; i++)
{
id = players[i];
if(!is_user_alive(id))
continue;

if(invizibilitate[id])
{
invizibilitate[id] = false;
set_user_rendering(id);
}
}
}

public client_death(killer, victim, wpnindex, hitplace, tk)
{
if(!is_user_alive(killer))
return;

if(killer == victim)
return;

if(viteza[killer]) viteza[killer] = false;
if(invizibilitate[killer])
{
invizibilitate[killer] = false;
set_user_rendering(killer);
}
}


public client_putinserver(id)
{
viteza[id] = false;
invizibilitate[id] = false;
}

public ClCmdMagicWord( id )
{
if( !UserHasAcces( id ) )
{
client_cmd( id, "echo Nu ai acces la aceasta comanda !" );
return PLUGIN_HANDLED;
}

read_argv( 1, g_szMagicWord, 14 );
if( equal( g_szMagicWord, "" ) )
{

remove_task( MagicWordTask );
remove_task( MagicWordSecondTask );
g_bPlayersCanAnswer = false;

ChooseRandomWord( );
}
else
{
remove_task( MagicWordTask );
remove_task( MagicWordSecondTask );
g_bPlayersCanAnswer = false;

DisplayMagicWord( );
}


return 1;
}

public CheckForMagicWord(  id  )
{

static szSaid[ 192 ];
read_args( szSaid, sizeof ( szSaid ) -1 );

remove_quotes( szSaid );
if( equali( szSaid, "" )  || !g_bPlayersCanAnswer
|| cs_get_user_team( id ) == CS_TEAM_T )
return PLUGIN_CONTINUE;


if( equal( szSaid, g_szMagicWord ) )
{
g_bPlayersCanAnswer  =  false;
client_cmd( 0, "spk woop" );
GiveUserPrize( id );
}

return PLUGIN_CONTINUE;
}


public ChooseRandomWord( )
{
if( !get_playersnum( ) )
{
set_task( float( get_pcvar_num( gCvarMagicWordIterval ) ), "ChooseRandomWord", MagicWordTask );
return;
}

new iLen = random_num( 7, 8 );
formatex( g_szMagicWord, sizeof ( g_szMagicWord ) -1, "" );

for( new i = 0; i < iLen; i++ )
g_szMagicWord[ i ] = GetRandomCharacter( );

StartMagicWord( );
client_cmd( 0, "spk doop" );

set_task( float( get_pcvar_num( gCvarMagicWordIterval ) ), "ChooseRandomWord", MagicWordTask );
}

public DisplayMagicWord( )
{
if( !get_playersnum( ) )
{
   set_task( float( get_pcvar_num( gCvarMagicWordIterval ) ), "ChooseRandomWord", MagicWordTask );
   return;
}

StartMagicWord( );
client_cmd( 0, "spk doop" );

set_task( float( get_pcvar_num( gCvarMagicWordIterval ) ), "ChooseRandomWord", MagicWordTask );
}

GetRandomCharacter( )
{
new Float:fRandom = random_float( 1.0, 100.0 );

if( fRandom <= 25.0 )
{
return g_szSmallLetters[ random( sizeof ( g_szSmallLetters ) ) ];
}

else if( fRandom > 25.0 && fRandom <= 50.0 )
{
return g_szLargeLetters[ random( sizeof ( g_szLargeLetters ) ) ];
}

else if( fRandom > 50.0 && fRandom < 75.0 )
{
return g_szNumbers[ random( sizeof ( g_szNumbers ) ) ];
}
else if( fRandom > 75.0 )
{
return g_szSymbols[ random( sizeof ( g_szSymbols ) ) ];
}

return EOS;
}

public StartMagicWord( )
{
g_bPlayersCanAnswer = true;

g_iAnswerTime = get_pcvar_num( gCvarMagicWordAnswerTime );
CountAnswerTime( );

}

public CountAnswerTime( )
{

if( g_bPlayersCanAnswer )
{

if( g_iAnswerTime <= 0 )
{
   g_bPlayersCanAnswer  =  false;
   ColorChat( 1, RED, "^x04[DR]^x01 Nu a scris nimeni cuvantul, poate data viitoare.." );
   return PLUGIN_HANDLED;
}

set_hudmessage( 0, 255, 255, -1.0, 0.10, 0, 0.0, 1.0, 0.0, 0.1, 2 );
ShowSyncHudMsg( 0, SyncHudMessage, "Cine scrie primul:     %s    castiga un premiu! (doar CT)^n %i secund%s ramas%s !!",
g_szMagicWord, g_iAnswerTime, g_iAnswerTime  ==  1 ? "a" : "e", g_iAnswerTime  ==  1 ? "a" : "e" );

g_iAnswerTime--;

set_task( 1.0, "CountAnswerTime", MagicWordSecondTask );
}

return PLUGIN_CONTINUE;
}

public GiveUserPrize( id )
{

new szName[ 55 ];
get_user_name( id, szName, sizeof ( szName ) -1 );

new iRandomPrize = random_num( PRIZE_SPEED, PRIZE_AWP);

switch( iRandomPrize )
{

case PRIZE_SPEED:
{
   viteza[id] = true;
   set_user_maxspeed(id, float(VITEZA));
   ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 400 Speed^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}
case PRIZE_NOCLIP:
{
   set_user_noclip(id,1);
   set_task(8.0,"removeClip",id);
   ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 NOCLIP^x01 8 sec!", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
   
   message_begin(MSG_ONE_UNRELIABLE, bar, .player=id);
   write_short(8);
   message_end();
   
}   

case PRIZE_GODMODE:
{
   set_user_godmode(id,1);
   set_task(10.0,"removeGodMode",id);
   ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si este^x03 Invincibil^x01 10 Secunde!", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
   
   message_begin(MSG_ONE_UNRELIABLE, bar, .player=id);
   write_short(10);
   message_end();
}

case PRIZE_HP:
{
   set_user_health( id, get_user_health( id ) + get_pcvar_num( gCvarMagicWordHP ) );
   ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 %i HP^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}
case PRIZE_RENDERING:
{
   invizibilitate[id] = true;
   set_user_rendering ( id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 32 );
   ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 Invizibilitate^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}
case PRIZE_ARMOR:
{
   set_user_armor(id, 100);
   ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 100 Armura^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}
case PRIZE_AK47:
{
   cs_set_weapon_ammo( give_item( id, "weapon_ak47" ), 50 );
   cs_set_user_bpammo(id, CSW_AK47, 99);
   ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 AK47^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}
case PRIZE_NADES:
{
   give_item( id, "weapon_hegrenade" );
   give_item( id, "weapon_smokegrenade" );
   
   cs_set_user_bpammo( id, CSW_HEGRENADE, 3 );
   cs_set_user_bpammo( id, CSW_SMOKEGRENADE, 1 );
   
   ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 grenade ^x01 !", szName, g_szMagicWord );
}
case PRIZE_AWP:
{
   cs_set_weapon_ammo( give_item( id, "weapon_awp" ), 20 );
   cs_set_user_bpammo(id, CSW_AWP, 99);
   ColorChat( 0, RED, "^x04[DR]^x03 %s^x01 a scris primul^x03 %s^x01 si a primit^x03 AWP ^x01 !", szName, g_szMagicWord, get_pcvar_num( gCvarMagicWordHP ) );
}


}

formatex( g_szMagicWord, sizeof ( g_szMagicWord ) -1, "" );
return 0;
}

public removeGodMode(id) {
set_user_godmode(id,0);
ColorChat( id, RED, "^x04[DR]^x01 Nu mai esti ^x03Invincibil!"); 
}

public removeClip(id) {
set_user_noclip(id,0);
ColorChat( id, RED, "^x04[DR]^x01 NoClip ^x03OFF!"); 
}

public event_CurWeapon(id)
{
if(is_user_alive(id))
{
if(get_user_maxspeed(id) != 1.0 && viteza[id] == true)
{
   set_user_maxspeed(id, float(VITEZA));
}
}

return PLUGIN_CONTINUE;
}

public ShakeScreen(id, const Float:iSeconds)
{
static g_msg_SS = 0;
if(!g_msg_SS)
g_msg_SS = get_user_msgid("ScreenShake");

message_begin(MSG_ONE, g_msg_SS, _, id);
write_short(floatround(4096.0 * iSeconds, floatround_round));
write_short(floatround(4096.0 * iSeconds, floatround_round));
write_short(1<<13);
message_end();
}

stock bool:UserHasAcces( id )
{

if( get_user_flags( id ) & ADMIN_RCON )
   return true;
   
   return false;
   
}

_________________
Stick with the best & regards Adryyy .


x , daNzeT , Arion , Chaos , Exolent , aNNakin , PoSiTiOn Of PoWeR , ExoTiQ , -UnQ- UHD , ViciousVixen , Arkshine , Askhanar , KronoS eXtream , alkaline , CryWolf , Fuffy , tre3fla , Rap^ , Hades Ownage , xPaw .


12 Jan 2019 14:34
Profile multumesc ICQ YIM
Online
Membru, skill 0
Membru, skill 0

Joined: 26 Nov 2018 19:52
Posts: 69
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Multumesc Adryyy, REZOLVAT!


12 Jan 2019 14:48
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: dim2k and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group