SA-MP Forums Archive
[Ajuda] TOCA Natal - Digito o comando ela aparece e some - 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: [Ajuda] TOCA Natal - Digito o comando ela aparece e some (/showthread.php?tid=547647)



TOCA Natal - Digito o comando ela aparece e some - GustavoG3D - 24.11.2014

TOCA Natal - Digito o comando ela aparece e some

Comando

SetPlayerAttachedObject(playerid,1,19066,2,0.13,0. 0,0.0,90,90.0,0.0);
a toca aparece por 2 segundos e some alguem ae me ajuda por favor ?
OBRIGADO




Mil Cairгo ao teu lado e dez mil a tua direita tu nгo sera atingido !

Sгo Paulo Style RPG/RP 22єBPM/M Atuando

IP DO SERVIDOR
216.144.250.53:2014



Re: TOCA Natal - Digito o comando ela aparece e some - BWCALLEf - 24.11.2014

pawn Код:
//TOPO DO GAMEMODE
new Gorro[MAX_PLAYERS]; // DEFINE O GORRO

// SE O PLAYER DIGITE /GORRO COLOCA O GORRO
// SE ELE JA ESTA COM O GORRO E DIGITAR /GORRO RETIRA O GORRO
CMD:gorro ( playerid, params[] )
{
    if ( Gorro [ playerid ] == 0 )
    {
       
        SetPlayerAttachedObject ( playerid, 1, 19066, 2, 0.13, 0.0, 0.0, 90, 90.0, 0.0 );
        Gorro [ playerid ] = 1; //tava chapeu
        SendClientMessage  ( playerid, -1,"| INFO | GORRO colocado" );
    }
    else
    {
       
        RemovePlayerAttachedObject ( playerid,1 );
        SendClientMessage( playerid,-1,"| INFO | GORRO Retirado" );
        Gorro[playerid] = 0;
    }
    return 1;
}



Re: TOCA Natal - Digito o comando ela aparece e some - Maklister - 24.11.2014

Manda o code do comando do gorro ...


Re: TOCA Natal - Digito o comando ela aparece e some - GustavoG3D - 24.11.2014

if(strcmp(cmd, "/fallback", true) == 0) {
SetPlayerAttachedObject(playerid,1,19066,2,0.13,0. 0,0.0,90,90.0,0.0);
return 0x01;
}


Re: TOCA Natal - Digito o comando ela aparece e some - SkullFire - 24.11.2014

Quote:
Originally Posted by BWCALLEf
Посмотреть сообщение
pawn Код:
//TOPO DO GAMEMODE
new Gorro[MAX_PLAYERS]; // DEFINE O GORRO

// SE O PLAYER DIGITE /GORRO COLOCA O GORRO
// SE ELE JA ESTA COM O GORRO E DIGITAR /GORRO RETIRA O GORRO
CMD:gorro ( playerid, params[] )
{
    if ( Gorro [ playerid ] == 0 )
    {
       
        SetPlayerAttachedObject ( playerid, 1, 19066, 2, 0.13, 0.0, 0.0, 90, 90.0, 0.0 );
        Chapeu [ playerid ] = 1;
        SendClientMessage  ( playerid, -1,"| INFO | GORRO colocado" );
    }
    else
    {
       
        RemovePlayerAttachedObject ( playerid,1 );
        SendClientMessage( playerid,-1,"| INFO | GORRO Retirado" );
        Gorro[playerid] = 0;
    }
    return 1;
}
De onde tu tirou esse "chapeu"? Conserta isso aн camarada .


Re: TOCA Natal - Digito o comando ela aparece e some - PT - 24.11.2014

Quote:
Originally Posted by SkullGamer
Посмотреть сообщение
De onde tu tirou esse "chapeu"? Conserta isso aн camarada .
Concertar o que? olha ai:

http://gta-sa-mp.de/forum/index.php?...ID&objID=19066


Re: TOCA Natal - Digito o comando ela aparece e some - SkullFire - 24.11.2014

Quote:
Originally Posted by PT
Посмотреть сообщение
Se tu nao viu, tinha uma variavel
Chapeu[playerid] = 1; e essa variбvel nao foi criada.


Re: TOCA Natal - Digito o comando ela aparece e some - Cor3y - 24.11.2014

Quote:
Originally Posted by BWCALLEf
Посмотреть сообщение
pawn Код:
//TOPO DO GAMEMODE
new Gorro[MAX_PLAYERS]; // DEFINE O GORRO

// SE O PLAYER DIGITE /GORRO COLOCA O GORRO
// SE ELE JA ESTA COM O GORRO E DIGITAR /GORRO RETIRA O GORRO
CMD:gorro ( playerid, params[] )
{
    if ( Gorro [ playerid ] == 0 )
    {
       
        SetPlayerAttachedObject ( playerid, 1, 19066, 2, 0.13, 0.0, 0.0, 90, 90.0, 0.0 );
        Gorro [ playerid ] = 1; //tava chapeu
        SendClientMessage  ( playerid, -1,"| INFO | GORRO colocado" );
    }
    else
    {
       
        RemovePlayerAttachedObject ( playerid,1 );
        SendClientMessage( playerid,-1,"| INFO | GORRO Retirado" );
        Gorro[playerid] = 0;
    }
    return 1;
}
CTRL C / CLTR V. :3

Antes de editar o cуdigo de alguйm, aprenda a ser um bom malandro, e nгo esqueзa dos crйditos.




Re: TOCA Natal - Digito o comando ela aparece e some - BWCALLEf - 24.11.2014

nгo amigo nгo fiz o code postei aqui pra ajudar o cara tbm nгo editei e tbm estou sem GTA e tbm so peguei e joguei aqui pro cara e em momento algum disse que o code era meu e nгo coloquei credito pois й um code simples que qualquer um que sabe o basico faz ... e errei e reconheзo desculpe.