[HELP]RC Explozion
#1

Hello everybody.I got still same problem.When I use command /streak.And type RC.I Spawn into RC and when press KEY_FIRE It won`t explode.I don`t know why.I did debug.Problem is in this lines but lines looks ok.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PRESSED(KEY_FIRE))
    {
        if(KS[playerid][Inside] == 1)
        {
            new Float:burnx, Float:burny, Float:burnz;
            GetPlayerPos(playerid,burnx, burny, burnz);
            CreateExplosion(burnx, burny , burnz, 7,10.0);
            CreateExplosion(burnx, burny , burnz, 7,10.0);
            CreateExplosion(burnx, burny , burnz, 7,10.0);
            SetPlayerPos(playerid, burnx, burny, burnz+2);
            DestroyVehicle(LVehicleID);
            KS[playerid][Inside] = 0;
        }
        else
        {
            SendClientMessage(playerid,0xFF0000FF,"You must be in a RC vehicle to explode it.");
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP]RC Explozion - by SpiderWalk - 06.05.2012, 20:31
Re: [HELP]RC Explozion - by thefatshizms - 06.05.2012, 20:37
Re: [HELP]RC Explozion - by SpiderWalk - 06.05.2012, 20:44
Re: [HELP]RC Explozion - by SpiderWalk - 06.05.2012, 20:52
Re: [HELP]RC Explozion - by 2KY - 06.05.2012, 22:10
Re: [HELP]RC Explozion - by SpiderWalk - 07.05.2012, 08:28
Re: [HELP]RC Explozion - by SpiderWalk - 07.05.2012, 19:59

Forum Jump:


Users browsing this thread: 1 Guest(s)