//============================Evento Systema :D================================= new EventoCriado = 0; new guerra; forward guerrat(); #define COR_VERMELHO 0xAA3333AA #define COR_ROXO 0x9900FFAA #define COLOR_KICKBAN 0xFF4500AA #define COLOR_GREEN 0x33AA33AA #define VERMELHORESCURO 0xAA3333AA #define COLOR_ARMARELO 0xFFFF00AA #define COLOR_BRANCO 0xFFFFFFAA #define COLOR_AZUL 0x33CCFFAA #define COR_CINZA 0xAFAFAFAA //============================Evento Systema :D================================= // CRIAR O EVENTO if(strcmp(cmdtext,"/einiciar",true)==0) { if(PlayerInfo[playerid][Level] >= 1 && IsPlayerAdmin(playerid)) { SendClientMessage(playerid,0xb9d26eff,"~Voce nгo e Admin para iniciar o Evento."); return 1; } if(EventoCriado == 1) { SendClientMessage(playerid,0xb9d26eff,"~ Um Evento jб foi criado,espere terminar para criar outro."); return 1; } new AdminNome[256], Admin[MAX_PLAYER_NAME]; GetPlayerName(playerid,Admin,sizeof Admin); printf(" %s criou um Evento",Admin); new Float:x, Float:y, Float:z; GetPlayerPos(playerid,x,y,z); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); guerra = GangZoneCreate(X-100,Y-100,X+100,Y+100); GangZoneShowForAll(guerra,VERMELHORESCURO); GangZoneFlashForAll(guerra,COLOR_AZUL); SetTimer("guerrat",60000,1); EventoCriado = 1; format(AdminNome,sizeof(AdminNome),"~ [INFO] > O Administrador '%s', abriu um evento,digite (/evento)!",Admin); SendClientMessageToAll(0xfffe009b,AdminNome); GameTextForAll("~b~Digite ~p~/evento", 3000, 1); return 1; } // PARAR O EVENTO if(strcmp(cmdtext,"/eparar",true)==0) { if(PlayerInfo[playerid][Level] >= 2 && IsPlayerAdmin(playerid)) { SendClientMessage(playerid,0xb9d26eff,"~Voce nгo e Admin para parar o Evento."); return 1; } if(EventoCriado == 0) { SendClientMessage(playerid,0xb9d26eff,"~ Nenhum evento aberto!"); return 1; } EventoCriado = 0; GameTextForAll("Evento Terminado", 3000, 1); SendClientMessage(playerid,0x3321FFFF,"~ Evento Terminado!"); return 1; } // Tranca o evento if(strcmp(cmdtext,"/etrancar",true)==0) { if(PlayerInfo[playerid][Level] >= 1 && IsPlayerAdmin(playerid)) { SendClientMessage(playerid,0xb9d26eff,"~Voce nгo e Admin para trancar o Evento."); return 1; } if(EventoCriado == 0) { SendClientMessage(playerid,0xb9d26eff,"~ Evento trancado"); return 1; } EventoCriado = 0; GameTextForAll("Evento Terminado", 3000, 1); SendClientMessage(playerid,0x3321FFFF,"~ Evento trancado!"); return 1; } //TELEPORTAR PARA O EVENTO if(strcmp(cmdtext,"/eentrar",true)==0) { if(PlayerInfo[playerid][Level] >= 1 && IsPlayerAdmin(playerid)) { ShowPlayerDialog(playerid,509,DIALOG_STYLE_MSGBOX,"Eventos","Obrigado por vir ate esse evento","Por-Nada","Cancelar"); new Float:x, Float:y, Float:z; SetPlayerPos(playerid, x+5, y, z); } else { SendClientMessage(playerid,0x3321FFFF,"~ Nenhum evento aberto!"); } return 1; } //DAR VIDa PARA os Jogadores do EVENto if(strcmp(cmdtext,"/evida",true)==0) { if(PlayerInfo[playerid][Level] >= 1 && IsPlayerAdmin(playerid)) { SendClientMessage(playerid,0xb9d26eff,"~Voce nгo e Admin para dar vida aos jogadores do Evento."); return 1; } if(EventoCriado == 1) { SetPlayerHealth(playerid, 100.0); } else { SendClientMessage(playerid,0x3321FFFF,"~ Nenhum evento aberto!"); } return 1; } //DAR Colete PARA os Jogadores do EVENto if(strcmp(cmdtext,"/ecolete",true)==0) { if(PlayerInfo[playerid][Level] >= 1 && IsPlayerAdmin(playerid)) { SendClientMessage(playerid,0xb9d26eff,"~Voce nгo e Admin para dar colete aos jogadores do Evento."); return 1; } if(EventoCriado == 1) { SetPlayerArmour(playerid, 100); } else { SendClientMessage(playerid,0x3321FFFF,"~ Nenhum evento aberto!"); } return 1; } //DAR Carr)o PARA os Jogadores do EVENto if(strcmp(cmdtext,"/ecarro",true)==0) { if(PlayerInfo[playerid][Level] >= 1 && IsPlayerAdmin(playerid)) { SendClientMessage(playerid,0xb9d26eff,"~Voce nгo e Admin para dar carro aos jogadores do Evento."); return 1; } if(EventoCriado == 1) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); SetVehiclePos(playerid,x,y+4, z); } else { SendClientMessage(playerid,0x3321FFFF,"~ Nenhum evento aberto!"); } return 1; } //============================Evento Systema :D=================================
Originally Posted by [mGo
Airton ]
================================================== = [FS]Sytema de Evento: Autor: Airton Baixar: http://pastebin.com/qHSPFb40 Agradecimentos: Airton Este FS foi desenvolvido por: Airton Versгo atual: 1.0b ================================================== == PS:Lembre-se teste o FS com outra pessoa caso contrario alguns Comandos nгo funcionaram: ================================================== == BUGS:Nenhum encontrado OBS:A versгo й 1.0BETa esta ainda em teste ================================================== == |
Originally Posted by OWNEDBYSERGIO:.
ok, ficou legal pra kct.. UP
|
Originally Posted by [mGo
Airton ]
Quote:
|
Originally Posted by [mGo
Airton ]
Post Atualizado |
C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(25) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(27) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(30) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(32) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(35) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(3 : error 017: undefined symbol "MAX_PLAYER_NAME" C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(39) : warning 219: local variable "Admin" shadows a variable at a preceding level C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(39) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(39) : error 010: invalid function or declaration C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(39 -- 42) : warning 219: local variable "x" shadows a variable at a preceding level C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(39 -- 42) : warning 219: local variable "y" shadows a variable at a preceding level C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(39 -- 42) : warning 219: local variable "z" shadows a variable at a preceding level C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(39 -- 44) : warning 219: local variable "X" shadows a variable at a preceding level C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(39 -- 44) : error 025: function heading differs from prototype C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(39 -- 44) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 10 Errors. |
C:\Program Files\Rockstar Games\Gta san Andreas\server\filterscripts\Evento.pwn(144) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |