[Ajuda] TOCA Natal - Digito o comando ela aparece e some
#1

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
Reply
#2

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;
}
Reply
#3

Manda o code do comando do gorro ...
Reply
#4

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

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 .
Reply
#6

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
Reply
#7

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

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.

Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)