RC-XD help.
#1

I have this code:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsKeyJustDown(KEY_SPRINT, newkeys, oldkeys))
    {
        if(GetPlayerVehicleID(playerid == 441))
        {
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            CreateExplosion(x,y,z,7,10.0);
            CreateExplosion(x,y+2,z,7,10.0);
            CreateExplosion(x,y-2,z,7,10.0);
            RemovePlayerFromVehicle(playerid);
            hasrc[playerid] = 0;
            hasbomb[playerid] = 0;
        }
    }
    return 1;
}
But when I press the button, it doesn't blow up? It just continue's moving..

How can I help this?

Thanks.
Reply


Messages In This Thread
RC-XD help. - by iGetty - 06.05.2012, 23:11
Re: RC-XD help. - by JaTochNietDan - 06.05.2012, 23:21
Re: RC-XD help. - by iGetty - 06.05.2012, 23:24

Forum Jump:


Users browsing this thread: 2 Guest(s)