Mind helping me? (Pro scripter) nevermind..
#4

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new currentveh;
            currentveh = GetPlayerVehicleID(playerid);
            new Float:vehx, Float:vehy, Float:vehz,Float:vehz_rot;
            GetXYInFrontOfPlayer(playerid,vehx,vehy,5);
            CreateObject(18648,vehx , vehy, vehz, vehz_rot);
        }
    }
    return 1;
}
And put that GetXYInFrontOfPlayer at the end of your whole script
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)