07.02.2015, 15:40
Is there anyway for me to add freezetime in this code for 10sec, when finish, it will unfreeze the player and clear player's animation ? Help me please :d
PHP код:
CMD:datbanhlenxe(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, "Ban khong the lam dieu do vao luc nay.");
if(PlayerInfo[playerid][pRFLTeam] == 0)
{
SendClientMessageEx(playerid,COLOR_GREY," Ban chua nau banh pizza !");
}
else
{
new closestcar = GetClosestCar(playerid);
if(IsPlayerInRangeOfVehicle(playerid, closestcar, 10.0))
{
if(!IsABike(closestcar))
{
SendClientMessageEx(playerid,COLOR_GREY," Ban khong gan mot chiec xe nao do !");
}
if(PlayerInfo[playerid][pRFLTeam] == 1)
{
PlayerInfo[playerid][pFallIntoFun] = 1;
SendClientMessageEx(playerid,COLOR_YELLOW," Ban dang dua banh len xe , vui long cho");
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0, 1);
}
}
}
return 1;
}