SA-MP Forums Archive
Um pequeno problema. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: Um pequeno problema. (/showthread.php?tid=278637)



Um pequeno problema. - CanTLoGin - 23.08.2011

Bom. Eu tenho o Cmd /Lpk e /MenuCarros.
No LPK eu coloquei pra bloquear todos os outros cmd. deixando apenas /sair.
Mas o Cmd /MenuCarros ele nгo block..

Comando MenuCarros:

pawn Код:
if (strcmp("/menucarros", cmdtext, true, 10) == 0)
    {
        new allvehicles[] = "1\tAviхes\n2\tHelicopteros\n3\tBikes\n4\tConversiveis\n5\tIndustrial\n6\tLowriders\n7\tOffRoad\n8\tCarros do Serviзo Publico\n9\tSaloons\n10\tCarros Sport\n11\tEstaзхes\n12\tBotes\n13\tVeiculos Unicos\n14\tRC Veiculos\n15\tTrailers";
        ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST," ",allvehicles,"Selecionar","Cancelar");
        return 1;
    }
Comando LPK:

pawn Код:
if(!strcmp("/lpk", cmdtext, true))
    {
        BlockCMD[playerid] = true;
        SetPlayerPos(playerid,1544.9849,-1353.7681,329.4735);
        SetPlayerInterior(playerid, 0);
        ResetPlayerWeapons(playerid);
        SetPlayerHealth(playerid,300);
        SetPlayerArmour(playerid,100);
        new playername[MAX_PLAYER_NAME];
        new string[68];
        GetPlayerName(playerid, playername, sizeof(playername));
        format(string,sizeof(string),"» %s Foi para o LPK (/lpk)",playername);
        SendClientMessageToAll(0xFF00FFFF,string);
        return 1;
    }
Help ^^ '



Re: Um pequeno problema. - MiTToS - 23.08.2011

if (strcmp("/menucarros", cmdtext, true, 10) == 0)
{
if(BlockCMD[playerid] == true) return 1;
new allvehicles[] = "1\tAviхes\n2\tHelicopteros\n3\tBikes\n4\tConversi veis\n5\tIndustrial\n6\tLowriders\n7\tOffRoad\n8\t Carros do Serviзo Publico\n9\tSaloons\n10\tCarros Sport\n11\tEstaзхes\n12\tBotes\n13\tVeiculos Unicos\n14\tRC Veiculos\n15\tTrailers";
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST," ",allvehicles,"Selecionar","Cancelar");
return 1;
}


Re: Um pequeno problema. - CanTLoGin - 23.08.2011

Funfo. Valeu MiTToS.
Sу mais uma pergunta " tosca "
Como coloco pro play sу poder usar o MenuCarros de 20 em 20 seg ?


Re: Um pequeno problema. - StrondA_ - 23.08.2011

Sу ensino uma vez, na segunda vez dou porrada ¬¬ /zoa

new FaillTempo[MAX_PLAYERS]; //Criando Variavel
forward CMD(playerid);

if(!strcmp("/sougay", cmdtext, true))
{
if(FaillTempo[playerid] == true) return SendClientMessage(playerid, 0xFFFF00AA, "Faill amore, vocк sу pode revelar-se novamente depois do tempo <3");
SetTimerEx("CMD",20000,false,"i",playerid), FaillTempo[playerid] = true; //SetTimerEx Usado somente para o jogador " Playerid "
return true;
}

public CMD(playerid) {
FaillTempo[playerid] = false;
return true;
}


Seja feliz manolo.... rs
Cloused..



Re: Um pequeno problema. - CanTLoGin - 23.08.2011

Valeu ^^