Is there a way to stop a player from running?
#10

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerAnimationIndex(playerid) == 458 || GetPlayerAnimationIndex(playerid) == 901 ||
    GetPlayerAnimationIndex(playerid) == 908 || GetPlayerAnimationIndex(playerid) == 1222 ||
    GetPlayerAnimationIndex(playerid) == 1223 || GetPlayerAnimationIndex(playerid) == 1224 ||
    GetPlayerAnimationIndex(playerid) == 1225 || GetPlayerAnimationIndex(playerid) == 1226
    || GetPlayerAnimationIndex(playerid) == 1227
    || GetPlayerAnimationIndex(playerid) == 1228
    || GetPlayerAnimationIndex(playerid) == 1229
    || GetPlayerAnimationIndex(playerid) == 1230
    || GetPlayerAnimationIndex(playerid) == 1231
    || GetPlayerAnimationIndex(playerid) == 1232
    || GetPlayerAnimationIndex(playerid) == 1233
    || GetPlayerAnimationIndex(playerid) == 1236
    || GetPlayerAnimationIndex(playerid) == 1249
    || GetPlayerAnimationIndex(playerid) == 1276
    || GetPlayerAnimationIndex(playerid) == 1277
    || GetPlayerAnimationIndex(playerid) == 1278
    || GetPlayerAnimationIndex(playerid) == 1279
    || GetPlayerAnimationIndex(playerid) == 1280
    || GetPlayerAnimationIndex(playerid) == 1384) // player is running
    return 1;
}
note: i know i missed some animations, but those are the basic ones. including women animation, muscular animation, ped animation, swat run. etc those that i didn't include were like basketball run
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)