[Erro]Comandos evento.
#1

Qual й o erro nos comandos abaixo.
Se alguem me explicar eu arrumo pois ja tenho uma noзгo.

PHP код:
//==============================================================================
    
if(strcmp(cmdtext,"/einiciar",true)==0)
    {
    if(
EventoCriado == 1)
    {
    
SendClientMessage(playerid,0xb9d26eff,"Um Evento jб foi criado,espere terminar para criar outro.");
    return 
1;
    }
    if(
PlayerInfo[playerid][pAdmin] < 4)
       {
    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem autorizaзгo para usar esse comando.");
    return 
1;
    }
    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(playerid,x,y,z);
    new 
Float:X,Float:Y,Float:Z;
    
GetPlayerPos(playeridX,Y,Z);
    
guerra GangZoneCreate(X-100,Y-100,X+100,Y+100);
    
GangZoneShowForAll(guerra,COLOR_RED);
    
GangZoneFlashForAll(guerra,COLOR_BLUE);
    
SetTimer("guerrat",60000,1);
    
EventoCriado 1;
    
format(stringsizeof string"O administrador %s abriu o evento (/irevento)"sendername);
    
SendClientMessageToAll(COLOR_YELLOW,AdminNome);
    }
    return 
1;
    }
//==============================================================================
    
if(strcmp(cmdtext,"/eparar",true)==0)
    {
    if(
PlayerInfo[playerid][pAdmin] < 4)
       {
    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem autorizaзгo para usar esse comando.");
    return 
1;
    }
    if(
EventoCriado == 0)
    {
    
SendClientMessage(playerid,0xb9d26eff,"Nenhum evento aberto!");
    return 
1;
    }
    
EventoCriado 0;
    
SendClientMessage(playerid,0x3321FFFF,"Evento Terminado!");
    }
    return 
1;
    }
//==============================================================================
    
if(strcmp(cmdtext,"/etrancar",true)==0)
    {
    if(
PlayerInfo[playerid][pAdmin] < 4)
       {
    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem autorizaзгo para usar esse comando.");
    return 
1;
    }
    if(
EventoCriado == 0)
    {
    
SendClientMessage(playerid,0xb9d26eff,"Evento trancado");
    return 
1;
    }
    
EventoCriado 0;
    
SendClientMessage(playerid,0x3321FFFF,"Evento trancado!");
    }
    return 
1;
    }
//==============================================================================
    
if(strcmp(cmdtext,"/irevento",true)==0)
    {
    if(
PlayerInfo[playerid][pAdmin] < 4)
       {
    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem autorizaзгo para usar esse comando.");
    return 
1;
    }
    
ShowPlayerDialog(playerid,509,DIALOG_STYLE_MSGBOX,"Eventos","Obrigado por vir ate esse evento","Ok","Cancelar");
    new 
Float:xFloat:yFloat:z;
    
SetPlayerPos(playeridx+5yz);
    }
    else
    {
    
SendClientMessage(playerid,0x3321FFFF,"Nenhum evento aberto!");
    }
    return 
1;
    }
//==============================================================================
    
if(strcmp(cmdtext,"/evida",true)==0)
    {
    if(
PlayerInfo[playerid][pAdmin] < 4)
       {
    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem autorizaзгo para usar esse comando.");
    return 
1;
    }
    if(
EventoCriado == 1)
    {
    
SetPlayerHealth(playerid100);
    }
    else
    {
    
SendClientMessage(playerid,0x3321FFFF,"Nenhum evento aberto!");
    }
    return 
1;
    }
//==============================================================================
    
if(strcmp(cmdtext,"/ecolete",true)==0)
    {
    if(
PlayerInfo[playerid][pAdmin] < 4)
       {
    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem autorizaзгo para usar esse comando.");
    return 
1;
    }
    if(
EventoCriado == 1)
    {
    
SetPlayerArmour(playerid100);
    }
    else
    {
    
SendClientMessage(playerid,0x3321FFFF,"Nenhum evento aberto!");
    }
    return 
1;
    }
//==============================================================================
    
if(strcmp(cmdtext,"/earma",true)==0)
    {
    if(
PlayerInfo[playerid][pAdmin] < 4)
       {
    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo tem autorizaзгo para usar esse comando.");
    return 
1;
    }
    if(
EventoCriado == 1)
    {
    
GivePlayerWeapon(playerid25700);
    
GivePlayerWeapon(playerid24700);
    
GivePlayerWeapon(playerid3,  700);
    
GivePlayerWeapon(playerid31700);
    
GivePlayerWeapon(playerid29700);
    
GivePlayerWeapon(playerid41700);
    
GivePlayerWeapon(playerid17700);
    
GivePlayerWeapon(playerid34700);
    
GivePlayerWeapon(playerid42700);
    }
    else
    {
    
SendClientMessage(playerid,0x3321FFFF,"Nenhum evento aberto!");
    }
    return 
1;
    } 
Reply


Messages In This Thread
[Erro]Comandos evento. - by Matheus_Vieira - 08.11.2011, 17:31
Re: [Erro]Comandos evento. - by Kuddy - 08.11.2011, 17:51
Re: [Erro]Comandos evento. - by humildadeforever - 08.11.2011, 18:16
Respuesta: [Erro]Comandos evento. - by Matheus_Vieira - 08.11.2011, 18:17
Re: [Erro]Comandos evento. - by humildadeforever - 08.11.2011, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)