←  Prośby o modyfikację

AMXX.pl: Support AMX Mod X i SourceMod

»

Zombie Plague 5.0
Fragi za wygraną runde

  • +
  • -
TheArek001 - zdjęcie TheArek001 30.05.2014

Witam, potrzebuje pomocy w przerobieniu pluginu tak aby ludzie dostawali 4 fragi za wygraną rundę a zombie tylko 1.

Plugin nie jest zrobiony pod Zombie dlatego nie działa poprawnie.

 

 

 

 

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <ColorChat>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_event( "SendAudio", "eT_win" , "a", "2&%!MRAD_terwin" );
register_event( "SendAudio", "eCT_win", "a", "2&%!MRAD_ctwin" );
}


public eT_win(){

for(new i=0; i<32; i++){

if(is_user_connected(i)&&get_user_team(i)==2){
set_user_frags(i, get_user_frags(i)+5)
sendMSG(i)
}
}
}

public eCT_win(){

for(new i=0; i<32; i++){

if(is_user_connected(i)&&get_user_team(i)==1){
set_user_frags(i, get_user_frags(i)+5)
sendMSG(i)
}
}
}

public sendMSG(id){

ColorChat(id, RED, "[Ganiany]^x04Otrzymales ^x015 fragow ^x04za wygraną runde")
}

 

Odpowiedz

sdanielos - zdjęcie sdanielos 30.05.2014

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <ColorChat>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_event( "SendAudio", "eT_win" , "a", "2&%!MRAD_terwin" );
register_event( "SendAudio", "eCT_win", "a", "2&%!MRAD_ctwin" );
}


public eT_win(){

for(new i=0; i<32; i++){

if(is_user_connected(i)&&get_user_team(i)==2){
set_user_frags(i, get_user_frags(i)+1)
sendMSG(i)
}
}
}

public eCT_win(){

for(new i=0; i<32; i++){

if(is_user_connected(i)&&get_user_team(i)==1){
set_user_frags(i, get_user_frags(i)+4)
sendMSG(i)
}
}
}

public sendMSG(id){

ColorChat(id, RED, "[Ganiany]^x04Otrzymales ^x015 fragow ^x04za wygraną runde")
}

Użytkownik sdanielos edytował ten post 30.05.2014 11:29
Odpowiedz

  • +
  • -
TheArek001 - zdjęcie TheArek001 31.05.2014

"Plugin nie jest zrobiony pod Zombie dlatego nie działa poprawnie."

Czytaj kolego co pisze bo tylko zmieniłeś dostawane fragi, a problem leży w tym że plugin nie jest na zombie i buguje się.

Odpowiedz