[Ajuda] Comando Aqui.
#3

cria uma variavel
PHP код:
new TemGuerra
no comando de /guerra coloca
PHP код:
CMD:guerra(playerid,params[])
{
    if(
GetPlayerTeam(playerid) != 2)
    if(
GetPlayerTeam(playerid) != 3)
    return 
SendClientMessage(playerid,Cinza_Escuro,"[x] Comando Indisponнvel Para sua {09D6E1}Organizaзгo");
        if(
TemGuerra == 1)
    return 
SendClientMessage(playerid,Cinza_Escuro"[x] Uma Guerra Jб Foi {09D6E1}Iniciada.");
    new 
Float:X,Float:Y,Float:Z;
    
GetPlayerPos(playeridX,Y,Z);
    
guerra GangZoneCreate(X-200,Y-200,X+200,Y+200);
    
GangZoneShowForAll(guerra,-1);
    
SetTimer("guerrat",60000,0); // Tempo Guerra 1 min
    
GuerraB[playerid] = 1;
    new 
pname[25], s[150];
    
GetPlayerName(playeridpname25);
    
format(ssizeof(s), "{19ED0D}[GUERRA] {FFFFFF}O {09D6E1}Terrorista {FFFFFF}%s Acaba De Iniciar uma {09D6E1}Guerra."pname);
    
SendClientMessageToAll(Brancos);
        
TemGuerra 1;
    return 
1;

e na public guerrat
PHP код:
public guerrat(playerid)
{
    
GangZoneDestroy(guerra);
    
GangZoneHideForAll(guerra);
    
SendClientMessageToAll(Branco"{09D6E1}[Guerra] {FFFFFF}A Guerra Foi {09D6E1}Finalizada {FFFFFF}Pelo Governo {09D6E1}Federal");
    
GuerraB[playerid] = 0;
    
TemGuerra 0;
    return 
1;

Reply


Messages In This Thread
Comando Aqui. - by Lucas-Fc - 24.10.2012, 00:02
Re: Comando Aqui. - by leandro123456 - 24.10.2012, 00:07
Re: Comando Aqui. - by ForT - 24.10.2012, 00:08
Re: Comando Aqui. - by Lucas-Fc - 24.10.2012, 00:10
Re: Comando Aqui. - by leandro123456 - 24.10.2012, 00:14
Re: Comando Aqui. - by Lucas-Fc - 24.10.2012, 00:14
Re: Comando Aqui. - by Lucas-Fc - 24.10.2012, 00:23
Re: Comando Aqui. - by ForT - 24.10.2012, 00:42
Re: Comando Aqui. - by Lucas-Fc - 24.10.2012, 00:44

Forum Jump:


Users browsing this thread: 2 Guest(s)