[Ajuda] Precisando digitar 2 vezes
#1

Galera, algumas animaзхes que eu fiz , estб precisando digitar ela 2x pra funcionar

Exemplo:

Eu digito /sentar ele nao vai
dai eu digito /sentar denovo e ele senta, tem como arrumar isso?

Olha os animes:

pawn Код:
if (strcmp("/bebado", cmdtext, true, 10) == 0)
    {
        ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1,1);
        return 1;
    }
   
    if (strcmp("/dancar", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid,0xFF00FF,"(INFO) Use /dancar [1-3]");
        return 1;
    }
   
    if (strcmp("/dancar 1", cmdtext, true, 10) == 0)
    {
        ApplyAnimation(playerid,"DANCING","dance_loop",4.1,1,1,1,1,1,1);
        return 1;
    }
   
    if (strcmp("/dancar 2", cmdtext, true, 10) == 0)
    {
        ApplyAnimation(playerid,"DANCING","DAN_Down_A",4.1,1,1,1,1,1,1);
        return 1;
    }
   
    if (strcmp("/dancar 3", cmdtext, true, 10) == 0)
    {
        ApplyAnimation(playerid,"DANCING","bd_clap",4.1,1,1,1,1,1,1);
        return 1;
    }
   
    if(strcmp("/deitar", cmdtext, true) == 0)
    {
        ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }
   
    if (strcmp("/morrer", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid,0);
        return 1;
    }
   
    if(strcmp("/vomitar", cmdtext, true) == 0)
    {
        ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
        return 1;
    }
   
    if(strcmp("/sentar", cmdtext, true) == 0)
    {
        ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
        return 1;
    }
   
    if(strcmp("/xixi", cmdtext, true) == 0)
    {
        SetPlayerSpecialAction(playerid, 68);
        return 1;
    }
Reply
#2

pawn Код:
if(strcmp(cmd, "/xixi", true) == 0) {
                 SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
         return 1;
    }
Reply
#3

nem sei
Reply
#4

pawn Код:
//ex:

LoopingAnim(playerid, "BEACH", "bather", 4.1, 0, 1, 1, 1, 1);

//stock no fim do GM
pawn Код:
LoopingAnim(playerid, animlib[], animname[], Float:Speed, looping, lockx, locky, time, forcesync = 1)
{
    if(!IsPlayerInAnyVehicle( playerid ) )
        {
            ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, time, time, forcesync);
        }
        return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)