LondoN eXtream 110 Posted June 12, 2015 Share Posted June 12, 2015 Forward-ul "FM_ClientConnect" executa comenzi jucatorului cand se conecteaza. Acest forward este echivalentul publicului "client_connect" 1. Introducem in codul nostru: #include <fakemeta> sau #include fakemeta sau #include <fakemeta.inc> 2. In "public plugin_init()" adaugam: register_forward(FM_ClientConnect, "FM_Client_Connect_Test", 1) 3. Creem un public cu numele "FM_Client_Connect_Test" si adaugam comenzi. exemplu: public FM_Client_Connect_Test(Client) { /*Presupunem ca am creat un cvar, care are valoarea "[TAG]" */ new iString[32] get_pcvar_string("amx_tag", iString, 31) client_print(Client, print_chat, "%s Forward Client Connect Test", iString) return; } Link to comment Share on other sites More sharing options...
Recommended Posts