Raised This Month: $ Target: $400
 0% 

[ES] Escribir y leer en un txt


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 01-15-2010 , 10:41   [ES] Escribir y leer en un txt
#1

PHP Code:
register_concmd("amx_agregar","agregar_palabra"ADMIN_RCON"<Palabra>")

public 
agregar_palabra(id) {
// Como hago para que esa palabra sea escrita en un txt ??? 
Luego como hago para que el plugin lea ese txt

PHP Code:
public client_connect(id) {
    new 
name[32]
    
get_user_name(idname32)
    for(
i=0i<sizeof(/*LO_QUE_CONTIENE_EL_TXT*/); i++) {
        if(
equali(name/*LO_QUE_CONTIENE_EL_TXT[i]*/)) {
        
server_cmd("kick %s"name)
    }

por ejemplo: yo escribo mediante el comando amx_agregar gayzito, la palabra gayzito se escribe en un txt, luego que el plugin lea todas las palabras que contiene el txt y si una de esas palabras es identico al nick de un jugador que haga el kick.
__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode