- I'm getting frustrated to get this action working. Any idea why its not bothering to work or what?
Код:
CMD:animlist(playerid, params[])
{
SendClientMessage(playerid,COLOR_YELLOW,"Animations: {FFFFFF}/handsup /bomb /getarrested /laugh /lookout /robman /arrest /cellin /cellout /slapass");
SendClientMessage(playerid,COLOR_WHITE,"{FFFFFF}/crossarms /vomit /eat /wave /taichi /relax /carjack /laydown /laugh /chairsit");
SendClientMessage(playerid,COLOR_WHITE,"{FFFFFF}/deal /crack /smokem /smokef /groundsit /chat /dance /f**ku /cuffed /uncuffme /drunk");
SendClientMessage(playerid,COLOR_WHITE,"{FFFFFF}/injured /kickass /funwalk /glitched /rofl /slapass /fallback /chant /adie /kiss /wank");
SendClientMessage(playerid,COLOR_YELLOW,"Note: {FFFFFF}Press 'Y' to stop Animation");
return 1;
}
CMD:wank(playerid, params[])return ApplyAnimation(playerid,"PAULNMAC", "wank_loop", 1.800001, 1, 0, 0, 1, 600);
CMD:kiss(playerid, params[])return ApplyAnimation(playerid,"KISSING", "Grlfrd_Kiss_02", 1.800001, 1, 0, 0, 1, 600);
CMD:medic(playerid, params[])return ApplyAnimation(playerid,"MEDIC","CPR",4.1,0,1,1,1,1);
CMD:adie(playerid, params[])return ApplyAnimation(playerid,"PED","BIKE_fallR",4.1,0,1,1,1,1);
CMD:chant(playerid, params[])return ApplyAnimation(playerid,"RIOT","RIOT_CHANT",4.0,1,1,1,1,0);
CMD:fallback(playerid, params[])return ApplyAnimation(playerid, "PED","FLOOR_hit_f", 4.0, 1, 0, 0, 0, 0);
CMD:rofl(playerid, params[])return ApplyAnimation(playerid,"PED","Crouch_Roll_L",4.1,0,1,1,1,1);
CMD:glitched(playerid, params[])return ApplyAnimation(playerid,"TATTOOS","TAT_Sit_Out_O",4.1,0,1,1,1,1);
CMD:funwalk(playerid, params[])return ApplyAnimation(playerid,"WUZI","Wuzi_Walk",4.1,0,1,1,1,1);
CMD:kickass(playerid, params[])return ApplyAnimation(playerid,"FIGHT_E","Hit_fightkick",4.1,0,1,1,1,1);
CMD:injured(playerid, params[])return ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0);
CMD:laydown(playerid, params[])return ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
CMD:arrest(playerid, params[])return ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
CMD:carjack(playerid, params[])return ApplyAnimation(playerid,"PED","CAR_jackedLHS",4.0,0,1,1,1,0);
CMD:relax(playerid, params[])return ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
CMD:cuffed(playerid, params[])
{
SetPlayerAttachedObject(playerid,8,19418,6,-0.031999,0.024000,-0.024000,-7.900000,-32.000011,-72.299987,1.115998,1.322000,1.406000);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
return 1;
}
CMD:uncuffme(playerid, params[])
{
if(IsPlayerAttachedObjectSlotUsed(playerid, 8))
{
RemovePlayerAttachedObject(playerid, 8);
}
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
return 1;
}
CMD:handsup(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
return 1;
}
CMD:cellin(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
return 1;
}
CMD:cellout(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
return 1;
}
CMD:drunk(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.0,1,1,1,1,0);
return 1;
}
CMD:bomb(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ClearAnimations(playerid);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
return 1;
}
CMD:getarrested(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); // Gun Arrest
return 1;
}
CMD:laugh(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0); // Laugh
return 1;
}
CMD:lookout(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
return 1;
}
CMD:robman(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0); // Rob
return 1;
}
CMD:crossarms(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1); // Arms crossed
return 1;
}
CMD:lay(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); // Lay down
return 1;
}
CMD:vomit(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0); // Vomit BAH!
return 1;
}
CMD:wave(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0); // Wave
return 1;
}
CMD:slapass(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0); // Ass Slapping
return 1;
}
CMD:deal(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0); // Deal Drugs
return 1;
}
CMD:crack(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
return 1;
}
CMD:smokem(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0); // Smoke
return 1;
}
CMD:smokef(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0); // Female Smoking
return 1;
}
CMD:groundsit(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0); // Sit
return 1;
}
CMD:chat(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
return 1;
}
CMD:fucku(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid,"PED","fucku",4.0,0,0,0,0,0);
return 1;
}
CMD:taichi(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
return 1;
}
CMD:chairsit(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);
return 1;
}
CMD:dance(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, -1, "You have to be on foot.");
new dancestyle;
if(sscanf(params,"i", dancestyle))
{
SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [style 1-4]");
return 1;
}
if(dancestyle < 1 || dancestyle > 4)
{
SendClientMessage(playerid,0xFF0000FF,"USAGE: /dance [style 1-4]");
return 1;
}
if(dancestyle == 1) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
} else if(dancestyle == 2) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
} else if(dancestyle == 3) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
} else if(dancestyle == 4) {
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
}
return 1;
}
I didn't ask for animations. I have a feeling this is a bug since I tried with a different animation witch worked perfectly fine, but when it comes to this one, Its just doesn't want to work. Could anyone confirm this?
Found out, This action does not work with Skin ID: 0. Anyway to work around this?