Ok zaraz wyślę, jeszcze problem mam z errorami:
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
L 09/09/2012 - 23:53:29: [MySQL] Thread worker was unable to start.
L 09/09/2012 - 23:53:29: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 09/09/2012 - 23:53:29: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 09/09/2012 - 23:53:29: [AMXX] [0] check_flag.inl::check_flagged (line 36)
L 09/09/2012 - 23:53:29: [AMXX] [1] check_player.inl::check_player_ (line 100)
Tutaj .sma vipa:
#include <amxmodx>
#include <colorchat>
#include <cstrike>
#include <csx>
#include <fun>
#include <hamsandwich>
new Array:g_Array, bool:g_Vip[33], gRound=0;
new const g_Langcmd[][]={"say /vips","say_team /vips","say /vipy","say_team /vipy"};
public plugin_init(){
register_plugin("VIP Ultimate", "5.1.0.2", "benio101 & speedkill");
RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
register_event("HLTV", "event_new_round", "a", "1=0", "2=0");
register_logevent("GameCommencing", 2, "1=Game_Commencing");
g_Array=ArrayCreate(64,32);
for(new i;i<sizeof g_Langcmd;i++)
register_clcmd(g_Langcmd[i],"g_Vips");
register_clcmd("say /vip", "g_ShowMotd");
register_event("DeathMsg", "DeathMsg", "a");
register_logevent("Round_end", 2, "1=Round_End");
}
public client_authorized(id){
if(get_user_flags(id) & 524288 == 524288){
client_authorized_vip(id);
}
}
public client_authorized_vip(id){
g_Vip[id]=true;
new g_Name[64];
get_user_name(id,g_Name,charsmax(g_Name));
ArrayPushString(g_Array,g_Name);
}
public client_disconnect(id){
if(g_Vip[id]){
client_disconnect_vip(id);
}
}
public client_disconnect_vip(id){
g_Vip[id]=false;
new Name[64];
get_user_name(id,Name,charsmax(Name));
new g_Size = ArraySize(g_Array);
new g_Name[64];
for(new i = 0; i < g_Size; i++){
ArrayGetString(g_Array, i, g_Name, charsmax(g_Name));
if(equal(g_Name,Name)){
ArrayDeleteItem(g_Array,i);
break;
}
}
}
public SpawnedEventPre(id){
if(g_Vip[id]){
if(is_user_alive(id)){
SpawnedEventPreVip(id);
}
}
}
public event_new_round(){
++gRound;
}
public GameCommencing(){
gRound=0;
}
public SpawnedEventPreVip(id){
if(gRound>=2){
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
cs_set_user_bpammo(id, CSW_FLASHBANG,2);
give_item(id, "weapon_smokegrenade");
}
}
public g_Vips(id){
new g_Name[64],g_Message[192];
new g_Size=ArraySize(g_Array);
for(new i = 0; i < g_Size; i++){
ArrayGetString(g_Array, i, g_Name, charsmax(g_Name));
add(g_Message, charsmax(g_Message), g_Name);
if(i == g_Size - 1)
add(g_Message, charsmax(g_Message), ".");
else
add(g_Message, charsmax(g_Message), ", ");
}
ColorChat(id,GREEN,"^x03Vipy ^x04na ^x03serwerze : ^x04%s", g_Message);
}
public client_infochanged(id){
if(g_Vip[id]){
new szName[64];
get_user_info(id,"name",szName,charsmax(szName));
ArrayPushString(g_Array,szName);
new Name[64];
get_user_name(id,Name,charsmax(Name));
new g_Size=ArraySize(g_Array);
new g_Name[64];
for(new i = 0; i < g_Size; i++){
ArrayGetString(g_Array, i, g_Name, charsmax(g_Name));
if(equal(g_Name,Name)){
ArrayDeleteItem(g_Array,i);
break;
}
}
}
}
public plugin_end(){
ArrayDestroy(g_Array);
}
public g_ShowMotd(id){
if(is_user_connected(id))
show_motd(id, "vip.txt", "Informacje o vipie");
}
public bomb_planted(id){
if(is_user_alive(id) && g_Vip[id])
cs_set_user_money(id,cs_get_user_money(id) + 300);
}
public bomb_defused(id){
if(is_user_alive(id) && g_Vip[id])
cs_set_user_money(id,cs_get_user_money(id) + 300);
}
public DeathMsg(){
new killer=read_data(1);
new victim=read_data(2);
if(is_user_alive(killer) && g_Vip[killer]){
if(get_user_team(killer) != get_user_team(victim)){
new g_Hs=read_data(3);
new g_Hp=get_user_health(killer);
if(g_Hs){
cs_set_user_money(killer,cs_get_user_money(killer) + 500);
if(g_Hp < 130){
if(g_Hp + 10 > 120){
new g_Dif = 120 - g_Hp;
set_user_health(killer,g_Hp + g_Dif);
}
else
set_user_health(killer,g_Hp + 10);
}
}
else{
cs_set_user_money(killer,cs_get_user_money(killer) + 300);
if(g_Hp < 120){
if(g_Hp + 5 > 120 ){
new g_Dif = 120 - g_Hp;
set_user_health(killer,g_Hp + g_Dif);
}
else
set_user_health(killer,g_Hp + 5);
}
}
}
}
}
public Round_end(){
for(new i = 1; i < 33; i++){
if(is_user_alive(i) && g_Vip[i])
cs_set_user_money(i,cs_get_user_money(i) + 200);
}
}