Server:LC fun server IP:81.0.217.174:27261
Este sa chcem opytat ako upravim plugin ...
napr. auotmatic_knife_duel.amxx,.sma - skusal som to cez AMX studio1.4.3
ide hlavne o to ze je to tam napisane anglicky a chcel by som to prepisat
aby ked sa pripoji dakto na srv tak tam bude pisane to co dam ja
prepisal som to a hodil na srv prepisal a stale dava po anglicky treba este nieco ?
alebo to robim uplne zle ?
Uprava pluginu
-
- Příspěvky: 11
- Registrován: 19 pro 2011, 14:50
- Reputation: 0
- Kontaktovat uživatele:
Uprava pluginu
LC FuN ServeR : 81.0.217.174:27261
- Qefik
- Příspěvky: 5714
- Registrován: 26 pro 2009, 11:26
- Reputation: 0
- Kontaktovat uživatele:
Re: Uprava pluginu
Prekompiloval si ten plugin? .sma je jen zdrojovy kod. .amxx je ten plugin
„Rozdávat rady je zbytečné. Moudrý si poradí sám a hlupák stejně neposlechne.“
Mark Twain
Mark Twain
-
- Příspěvky: 11
- Registrován: 19 pro 2011, 14:50
- Reputation: 0
- Kontaktovat uživatele:
-
- Příspěvky: 11
- Registrován: 19 pro 2011, 14:50
- Reputation: 0
- Kontaktovat uživatele:
Re: Uprava pluginu
takze mam amx studio otvorim si sma - upravim co chcem
v tools nastavim compilaciu cize amxxpc.exe a miesto kam ma ulozit amxx
dam compile a dole v logu sa nic nedeje ani error ani done hodi log a nic v nom tak ani nevytvori amxx
v tools nastavim compilaciu cize amxxpc.exe a miesto kam ma ulozit amxx
dam compile a dole v logu sa nic nedeje ani error ani done hodi log a nic v nom tak ani nevytvori amxx
LC FuN ServeR : 81.0.217.174:27261
- Qefik
- Příspěvky: 5714
- Registrován: 26 pro 2009, 11:26
- Reputation: 0
- Kontaktovat uživatele:
Re: Uprava pluginu
Udelej topres webcompiler nawww.amxmodx.org nebo najdi nejakej na googlu. Pokud tam mas errory, tak je oprav.
„Rozdávat rady je zbytečné. Moudrý si poradí sám a hlupák stejně neposlechne.“
Mark Twain
Mark Twain
-
- Příspěvky: 11
- Registrován: 19 pro 2011, 14:50
- Reputation: 0
- Kontaktovat uživatele:
Re: Uprava pluginu
presne som to riesil cez to :
/tmp/textxljC0q.sma(1) : error 013: no entry point (no public functions)
1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textxljC0q.amx (compile failed).
ale pise to aj pri inom neupravenom funkcnom plugine /sma
/tmp/textxljC0q.sma(1) : error 013: no entry point (no public functions)
1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textxljC0q.amx (compile failed).
ale pise to aj pri inom neupravenom funkcnom plugine /sma
LC FuN ServeR : 81.0.217.174:27261
- Qefik
- Příspěvky: 5714
- Registrován: 26 pro 2009, 11:26
- Reputation: 0
- Kontaktovat uživatele:
Re: Uprava pluginu
Aha, tak mi ho posli, ja se na to podivam
„Rozdávat rady je zbytečné. Moudrý si poradí sám a hlupák stejně neposlechne.“
Mark Twain
Mark Twain
-
- Příspěvky: 11
- Registrován: 19 pro 2011, 14:50
- Reputation: 0
- Kontaktovat uživatele:
-
- Příspěvky: 11
- Registrován: 19 pro 2011, 14:50
- Reputation: 0
- Kontaktovat uživatele:
Re: Uprava pluginu
Kód: Vybrat vše
public Showrod(id) {
show_menu(id, Keysrod, "VIP Zbrane^n\1. M4A1+Dgl^n\2. AK47+Dgl^n\3. AWP+Dgl^n0. Exit^n", -1, "rod") // Display menu
}
public Pressedrod(id, key) {
/* Menu:
* VIP Menu
* 1. M4A1 + Dgl
* 2. AK47 + Dgl
* 3. AWP + Dgl
* 0. Exit
*/
switch (key) {
case 0: {
if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
HasC4[id] = true;
else
HasC4[id] = false;
strip_user_weapons (id)
give_item(id,"weapon_m4a1")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"weapon_deagle")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
give_item(id, "item_assaultsuit");
give_item(id, "item_thighpack");
client_print(id, print_center, "Mas M4A1 a DGL")
if (HasC4[id])
{
give_item(id, "weapon_c4");
cs_set_user_plant( id );
}
}
case 1: {
if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
HasC4[id] = true;
else
HasC4[id] = false;
strip_user_weapons (id)
give_item(id,"weapon_ak47")
give_item(id,"ammo_762nato")
give_item(id,"ammo_762nato")
give_item(id,"ammo_762nato")
give_item(id,"weapon_deagle")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
give_item(id, "item_assaultsuit");
give_item(id, "item_thighpack");
client_print(id, print_center, "Mas AK47 a DGL")
if (HasC4[id])
{
give_item(id, "weapon_c4");
cs_set_user_plant( id );
}
}
case 2: {
if (user_has_weapon(id, CSW_C4) && get_user_team(id) == 1)
HasC4[id] = true;
else
HasC4[id] = false;
strip_user_weapons (id)
give_item(id,"weapon_awp")
give_item(id,"ammo_338magnum")
give_item(id,"ammo_338magnum")
give_item(id,"ammo_338magnum")
give_item(id,"weapon_deagle")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_smokegrenade");
give_item(id, "item_assaultsuit");
give_item(id, "item_thighpack");
client_print(id, print_center, "Dostal jsi AWP, deagle a granaty.")
if (HasC4[id])
{
give_item(id, "weapon_c4");
cs_set_user_plant( id );
}
}
case 9: {
}
}
return PLUGIN_CONTINUE
}
public HandleCmd(id){
if (!get_pcvar_num(g_awp_active))
return PLUGIN_CONTINUE
if(get_user_flags(id) & ADMIN_LEVEL_H)
return PLUGIN_CONTINUE
client_print(id, print_center, "AWP len VIPs :D")
return PLUGIN_HANDLED
}
public event_CurWeapon(id)
{
if(read_data(2) == CSW_AWP)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_H))
{
client_print(id, print_center, "AWP len VIPs :D")
client_cmd(id, "drop")
}
}
return PLUGIN_HANDLED
}
public event_CurWeaponn(id)
{
if(read_data(2) == CSW_SG550)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_H))
{
client_print(id, print_center, "AWP len VIPs :D")
client_cmd(id, "drop")
}
}
return PLUGIN_HANDLED
}
public event_CurWeaponnn(id)
{
if(read_data(2) == CSW_G3SG1)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_H))
{
client_print(id, print_center, "AWP len VIPs :D")
client_cmd(id, "drop")
}
}
return PLUGIN_HANDLED
}
public ShowMotd(id)
{
show_motd(id, "vip.txt")
}
public client_authorized(id)
{
set_task(50.0, "PrintText" ,id)
}
public PrintText(id)
{
client_print(id, print_chat, "[VIP] napis /vips a uvidis kto VIP je online")
client_print(id, print_chat, "[VIP] napis /chcemvip a najdes info")
}
public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/vips") != -1 )
set_task(0.1,"print_adminlist",id)
return PLUGIN_CONTINUE
}
public print_adminlist(user)
{
new adminnames[33][32]
new message[256]
new contactinfo[256], contact[112]
new id, count, x, len
for(id = 1 ; id <= maxplayers ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & ADMIN_LEVEL_H)
get_user_name(id, adminnames[count++], 31)
len = format(message, 255, "%s VIP ONLINE: ",COLOR)
if(count > 0) {
for(x = 0 ; x < count ; x++) {
len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ",COLOR)
}
}
print_message(user, message)
}
else {
len += format(message[len], 255-len, "Ziadny VIP online")
print_message(user, message)
}
get_cvar_string("amx_contactinfo", contact, 63)
if(contact[0]) {
format(contactinfo, 111, "%s Contact Server Admin -- %s", COLOR, contact)
print_message(user, contactinfo)
}
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
takto som si upravil podla seba ale preco mi neda AWP ? vsetko funguje skompliluje to dobre ale ked si mozem vybrat s vip zbrani tak
tak mi nic neda, teda m4a1 + dgl , ak47+ dgl ano ale awp nie mam tam daco zle ?
a este sa chcem opytat ze ako by som mal dopisat aby :
Kód: Vybrat vše
public PrintText(id)
{
client_print(id, print_chat, "[VIP] napis /vips a uvidis kto VIP je online")
client_print(id, print_chat, "[VIP] napis /chcemvip a najdes info")
vips a chcemvip bolo napisane zelenym pismom dakujem
LC FuN ServeR : 81.0.217.174:27261
- Qefik
- Příspěvky: 5714
- Registrován: 26 pro 2009, 11:26
- Reputation: 0
- Kontaktovat uživatele:
Re: Uprava pluginu
nejsme forum zaobírající se skriptováním v amxx 

„Rozdávat rady je zbytečné. Moudrý si poradí sám a hlupák stejně neposlechne.“
Mark Twain
Mark Twain
Kdo je online
Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 11 hostů