23.01.2010, 15:01
valew cara, sу faltou colocar o #include <a_samp> no topo, agora tб tudo certo, sу ainda с testei no sv, mas quando testar eu aviso!
AI ESTБ O DEFINITIVO!
AI ESTБ O DEFINITIVO!
Code:
#include <a_samp> #define DIALOG_WELCOME 624 public OnPlayerConnect(playerid) { ShowPlayerDialog(playerid,DIALOG_WELCOME,DIALOG_STYLE_MSGBOX,"BEM VINDO!","Seja bem vindo ao servidor ... \nRespeite os outros players e os administradores \nSiga as regras, ou vocк poderб ser punido","OK","SAIR"); return 1; } public OnDialogResponse(playerid,dialogid,response) { if(dialogid == DIALOG_WELCOME && response == 0) { SendClientMessage(playerid,0xFF0000AA,"Vocк foi kickado por escolher a opзгo SAIR no dialog welcome."); Kick(playerid); } if(dialogid == DIALOG_WELCOME && response == 1) { SendClientMessage(playerid,0x00FF00AA,"Agora vocк pode jogar."); } return 1; }