Jump to content
GIGN Forum

Pieprasitakie Plugini


Recommended Posts

  • Replies 52
  • Created
  • Last Reply

Top Posters In This Topic

tu doma tadu ka wos'aa ? Sorry tadu izplatiit foruma nedriikst ja pat es uzrakstiishu to pluginu tad var rasties daudzi pidinji kas man dirsiis virsu par idejas zagshanu cik zinu Wos pats skriptoja

Link to comment
Share on other sites

nem puika tik neraudi :superlol:

#include <amxmodx> #include <amxmisc> #include <cstrike> public plugin_init() {     register_plugin("iedo $$$ Plugin", "1.0", "$uicid3")     register_clcmd("say","filter_say",0) } public filter_say(id) {     new szPlayerSay[61],szWhat[16],szWhoAmount[41]     new szWho[36],szAmount[6]     read_args(szPlayerSay,60)     remove_quotes(szPlayerSay)     strbreak(szPlayerSay,szWhat,15,szWhoAmount,40)     if(equali(szWhat,"/iedo"))     {         strbreak(szWhoAmount,szWho,35,szAmount,6)         if(szWho[0] == 0){             client_print(id,print_chat,"[AMXX] Tev janorada niks.")             return PLUGIN_CONTINUE         }         if(str_to_num(szAmount) < 1){             client_print(id,print_chat,"[AMXX] Tev janorada vairak nauda par 0.")             return PLUGIN_CONTINUE         }         GiveMoney( id , szWho , str_to_num(szAmount))     }     return PLUGIN_CONTINUE } public GiveMoney( GiverID , Who[36] , iAmount) {     new WhoID = cmd_target(GiverID,Who, 8)     if(!is_user_connected(WhoID))     {         client_print(GiverID,print_chat,"[AMXX] %s nav tada speletaja",Who)         return PLUGIN_CONTINUE     }     if(GiverID == WhoID)     {         client_print(GiverID,print_chat,"[AMXX] Tu nevari iedot naudu pats sev.idinsh.")         return PLUGIN_CONTINUE     }     new GiverMoney,RecieverMoney,szGiver[36],szReciever[36]     get_user_name(WhoID,szReciever,35)     get_user_name(GiverID,szGiver,35)     GiverMoney = cs_get_user_money(GiverID)     RecieverMoney = cs_get_user_money(WhoID)     if(GiverMoney < iAmount)     {         client_print(GiverID,print_chat,"[AMXX] Tu pats esi bomzis tev pasham nav nauda.")         return PLUGIN_CONTINUE     }     if(RecieverMoney == 16000)     {         client_print(GiverID,print_chat,"[AMXX] %s Ir pilna nauda nevareja iedot.",szReciever)         return PLUGIN_CONTINUE     }     if((RecieverMoney + iAmount) > 16000)     {         iAmount  = (16000 - RecieverMoney)         client_print(GiverID,print_chat,"[AMXX] iedeva tikai $%d tapec ka %s tagad ir $16000",iAmount,szReciever)     }     else         client_print(GiverID,print_chat,"[AMXX] Tu iedevi %s $%d.",szReciever,iAmount)     client_print(WhoID,print_chat,"[AMXX] %s Iedeva tev $%d.",szGiver,iAmount)     cs_set_user_money(GiverID, (GiverMoney - iAmount), 1)     cs_set_user_money(WhoID , (RecieverMoney + iAmount), 1)     return PLUGIN_CONTINUE }

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...