Galera, algumas animaзхes que eu fiz , estб precisando digitar ela 2x pra funcionar
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;
}
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;
}